From e96929f1b267c40d27bcd81c61663229dbc3c3f1 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 11 Jan 2023 12:25:15 -0500 Subject: [PATCH] coredata: Remove dead code --- mesonbuild/coredata.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index a0086a65a..58c0949b4 100644 --- a/mesonbuild/coredata.py +++ b/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