coredata: Remove dead code

pull/11282/head
Xavier Claessens 2 years ago committed by Xavier Claessens
parent 6aeec80836
commit e96929f1b2
  1. 11
      mesonbuild/coredata.py

@ -746,17 +746,6 @@ class CoreData:
return True
return optname.lang is not None
def validate_option_value(self, option_name: OptionKey, override_value):
try:
opt = self.options[option_name]
except KeyError:
raise MesonException(f'Tried to validate unknown option {str(option_name)}')
try:
return opt.validate_value(override_value)
except MesonException as e:
raise type(e)(('Validation failed for option %s: ' % option_name) + str(e)) \
.with_traceback(sys.exc_info()[2])
def get_external_args(self, for_machine: MachineChoice, lang: str) -> T.List[str]:
return self.options[OptionKey('args', machine=for_machine, lang=lang)].value

Loading…
Cancel
Save