From 1ae428cbb3200375d572e1b684241d760d1577a7 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 7 Oct 2025 16:06:00 +0200 Subject: 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 --- mesonbuild/environment.py | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'mesonbuild/environment.py') 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) -- cgit v1.2.3