diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-13 13:22:39 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2021-07-13 16:43:14 -0700 |
| commit | dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d (patch) | |
| tree | b109e127dc1858cae63a5d8f7666c11e05fdc2d4 /mesonbuild/dependencies/dev.py | |
| parent | eac2d5eec53ca9d9a83a51ff03292dda3ae4a67f (diff) | |
| download | meson-dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d.tar.gz | |
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
Diffstat (limited to 'mesonbuild/dependencies/dev.py')
| -rw-r--r-- | mesonbuild/dependencies/dev.py | 17 |
1 files changed, 0 insertions, 17 deletions
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) @@ -545,10 +532,6 @@ class JDKSystemDependency(SystemDependency): 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 |
