diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-07 16:06:00 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-10-29 18:59:30 +0200 |
| commit | 1ae428cbb3200375d572e1b684241d760d1577a7 (patch) | |
| tree | c169421b29572d0192129750be3feb80e32a765b /mesonbuild/environment.py | |
| parent | 10cc5d9ceef64a536c301eb3bdfa3584568aa8dc (diff) | |
| download | meson-1ae428cbb3200375d572e1b684241d760d1577a7.tar.gz | |
environment, backends: remove is_* methods
They are duplicates of what is already in compilers and have no state. Just
use compilers.
Fixes: #15082
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index dd6938366..970f012b0 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -28,15 +28,6 @@ from .envconfig import ( BinaryTable, MachineInfo, Properties, known_cpu_families, CMakeVariables, ) from . import compilers -from .compilers import ( - is_assembly, - is_header, - is_library, - is_llvm_ir, - is_object, - is_separate_compile, - is_source, -) from mesonbuild import envconfig @@ -934,27 +925,6 @@ class Environment: cmd.insert(1, '-u') return cmd - def is_header(self, fname: 'mesonlib.FileOrString') -> bool: - return is_header(fname) - - def is_source(self, fname: 'mesonlib.FileOrString') -> bool: - return is_source(fname) - - def is_assembly(self, fname: 'mesonlib.FileOrString') -> bool: - return is_assembly(fname) - - def is_separate_compile(self, fname: 'mesonlib.FileOrString') -> bool: - return is_separate_compile(fname) - - def is_llvm_ir(self, fname: 'mesonlib.FileOrString') -> bool: - return is_llvm_ir(fname) - - def is_object(self, fname: 'mesonlib.FileOrString') -> bool: - return is_object(fname) - - def is_library(self, fname: mesonlib.FileOrString) -> bool: - return is_library(fname) - def lookup_binary_entry(self, for_machine: MachineChoice, name: str) -> T.Optional[T.List[str]]: return self.binaries[for_machine].lookup_entry(name) |
