From 0431b0bbbd63379acbf0d2cfec787224c58e5ce8 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 28 Feb 2025 12:18:25 -0800 Subject: environment: delete dead code from option refactor --- mesonbuild/environment.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'mesonbuild/environment.py') diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 7c18104ee..c5e8ba5cc 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2020 The Meson development team -# Copyright © 2023 Intel Corporation +# Copyright © 2023-2025 Intel Corporation from __future__ import annotations @@ -46,7 +46,6 @@ if T.TYPE_CHECKING: from .compilers import Compiler from .wrap.wrap import Resolver from . import cargo - from .build import BuildTarget CompilersDict = T.Dict[str, Compiler] @@ -1035,13 +1034,3 @@ class Environment: if extra_paths: env.prepend('PATH', list(extra_paths)) return env - - def determine_option_value(self, key: T.Union[str, 'OptionKey'], target: T.Optional['BuildTarget'], subproject: T.Optional[str]) -> T.List[str]: - if target is None and subproject is None: - raise RuntimeError('Internal error, option value determination is missing arguments.') - if isinstance(key, str): - key = OptionKey(key) - if target: - return self.coredata.get_option_for_target(target, key) - else: - return self.coredata.get_option_for_subproject(key, subproject) -- cgit v1.2.3