From 2b90e13ebe3373b7dd79e7954004b008dc6dca7f Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Sat, 6 Dec 2014 15:31:34 -0800 Subject: [PATCH] Bug 1108294 - Removed unused cachedir option; r=froydnj The argument isn't used. Let's remove dead code. --HG-- extra : rebase_source : bd8d5f72c50b8820635de78f2548821b93e425ae --- accessible/xpcom/AccEventGen.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/accessible/xpcom/AccEventGen.py b/accessible/xpcom/AccEventGen.py index f96c0976618..a5bbef7266b 100755 --- a/accessible/xpcom/AccEventGen.py +++ b/accessible/xpcom/AccEventGen.py @@ -205,22 +205,15 @@ def main(): help="Quick stub header output file", metavar="FILE") o.add_option('--makedepend-output', type='string', default=None, help="gnumake dependencies output file", metavar="FILE") - o.add_option('--cachedir', dest='cachedir', default=None, - help="Directory in which to cache lex/parse tables.") global options options, filenames = o.parse_args() if len(filenames) != 1: o.error("Exactly one config filename is needed.") filename = filenames[0] - if options.cachedir is not None: - if not os.path.isdir(options.cachedir): - os.mkdir(options.cachedir) - sys.path.append(options.cachedir) - # Instantiate the parser. global p - p = xpidl.IDLParser(outputdir=options.cachedir) + p = xpidl.IDLParser() conf = readConfigFile(filename)