diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-02-28 12:18:25 -0800 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-03-01 13:30:06 +0200 |
| commit | 0431b0bbbd63379acbf0d2cfec787224c58e5ce8 (patch) | |
| tree | 67fc10b0b11098e7203067458cabfceb5a96f4c8 /mesonbuild/environment.py | |
| parent | a9a37de9a4c479041b7f5d6e3127240505f6768a (diff) | |
| download | meson-0431b0bbbd63379acbf0d2cfec787224c58e5ce8.tar.gz | |
environment: delete dead code from option refactor
Diffstat (limited to 'mesonbuild/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 13 |
1 files changed, 1 insertions, 12 deletions
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) |
