msetup: Remove dead code

pull/4327/head
Xavier Claessens 6 years ago
parent d6fba7f01c
commit f0b1f0340c
  1. 9
      mesonbuild/msetup.py

@ -24,7 +24,6 @@ from . import environment, interpreter, mesonlib
from . import build from . import build
from . import mlog, coredata from . import mlog, coredata
from .mesonlib import MesonException from .mesonlib import MesonException
from .wrap import WrapMode
def add_arguments(parser): def add_arguments(parser):
coredata.register_builtin_arguments(parser) coredata.register_builtin_arguments(parser)
@ -43,14 +42,6 @@ def add_arguments(parser):
parser.add_argument('builddir', nargs='?', default=None) parser.add_argument('builddir', nargs='?', default=None)
parser.add_argument('sourcedir', nargs='?', default=None) parser.add_argument('sourcedir', nargs='?', default=None)
def wrapmodetype(string):
try:
return getattr(WrapMode, string)
except AttributeError:
msg = ', '.join([t.name.lower() for t in WrapMode])
msg = 'invalid argument {!r}, use one of {}'.format(string, msg)
raise argparse.ArgumentTypeError(msg)
class MesonApp: class MesonApp:
def __init__(self, options): def __init__(self, options):
(self.source_dir, self.build_dir) = self.validate_dirs(options.builddir, (self.source_dir, self.build_dir) = self.validate_dirs(options.builddir,

Loading…
Cancel
Save