From dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 13 Jul 2021 13:22:39 -0700 Subject: dependencies: drop Dependency.methods and Dependency.get_methods() Both of these are artifacts of the time before Dependency Factories, when a dependency that could be discovered multiple ways did ugly stuff like finding a specific dependency, then replacing it's own attributes with that dependency's attributes. We don't have cases of that left in the tree, so let's get rid of this code too --- mesonbuild/dependencies/dev.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'mesonbuild/dependencies/dev.py') diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 7300e2fe7..9c2594fb1 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -106,10 +106,6 @@ class GTestDependencySystem(SystemDependency): def log_tried(self) -> str: return 'system' - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.PKGCONFIG, DependencyMethods.SYSTEM] - class GTestDependencyPC(PkgConfigDependency): @@ -181,10 +177,6 @@ class GMockDependencySystem(SystemDependency): def log_tried(self) -> str: return 'system' - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.PKGCONFIG, DependencyMethods.SYSTEM] - class GMockDependencyPC(PkgConfigDependency): @@ -508,11 +500,6 @@ class ZlibSystemDependency(SystemDependency): self.version = v.strip('"') - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.SYSTEM] - - class JDKSystemDependency(SystemDependency): def __init__(self, environment: 'Environment', kwargs: T.Dict[str, T.Any]): super().__init__('jdk', environment, kwargs) @@ -544,10 +531,6 @@ class JDKSystemDependency(SystemDependency): self.compile_args.append(f'-I{java_home_include / platform_include_dir}') self.is_found = True - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.SYSTEM] - @staticmethod def __machine_info_to_platform_include_dir(m: 'MachineInfo') -> T.Optional[str]: """Translates the machine information to the platform-dependent include directory -- cgit v1.2.3