mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1108294 - Removed unused cachedir option; r=froydnj
The argument isn't used. Let's remove dead code. --HG-- extra : rebase_source : bd8d5f72c50b8820635de78f2548821b93e425ae
This commit is contained in:
parent
b710677a59
commit
2b90e13ebe
@ -205,22 +205,15 @@ def main():
|
|||||||
help="Quick stub header output file", metavar="FILE")
|
help="Quick stub header output file", metavar="FILE")
|
||||||
o.add_option('--makedepend-output', type='string', default=None,
|
o.add_option('--makedepend-output', type='string', default=None,
|
||||||
help="gnumake dependencies output file", metavar="FILE")
|
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
|
global options
|
||||||
options, filenames = o.parse_args()
|
options, filenames = o.parse_args()
|
||||||
if len(filenames) != 1:
|
if len(filenames) != 1:
|
||||||
o.error("Exactly one config filename is needed.")
|
o.error("Exactly one config filename is needed.")
|
||||||
filename = filenames[0]
|
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.
|
# Instantiate the parser.
|
||||||
global p
|
global p
|
||||||
p = xpidl.IDLParser(outputdir=options.cachedir)
|
p = xpidl.IDLParser()
|
||||||
|
|
||||||
conf = readConfigFile(filename)
|
conf = readConfigFile(filename)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user