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/base.py | |
parent | eac2d5eec53ca9d9a83a51ff03292dda3ae4a67f (diff) | |
download | meson-dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d.zip meson-dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d.tar.gz meson-dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d.tar.bz2 |
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/base.py')
-rw-r--r-- | mesonbuild/dependencies/base.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 2ecc909..7d6bf62 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -89,7 +89,6 @@ class Dependency(HoldableObject): # If None, self.link_args will be used self.raw_link_args: T.Optional[T.List[str]] = None self.sources: T.List['FileOrString'] = [] - self.methods = process_method_kw(self.get_methods(), kwargs) self.include_type = self._process_include_type_kw(kwargs) self.ext_deps: T.List[Dependency] = [] @@ -148,10 +147,6 @@ class Dependency(HoldableObject): As an example, gtest-all.cc when using GTest.""" return self.sources - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.AUTO] - def get_name(self) -> str: return self.name @@ -547,10 +542,6 @@ class SystemDependency(ExternalDependency): super().__init__(DependencyTypeName('system'), env, kwargs, language=language) self.name = name - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.SYSTEM] - def log_tried(self) -> str: return 'system' @@ -564,9 +555,5 @@ class BuiltinDependency(ExternalDependency): super().__init__(DependencyTypeName('builtin'), env, kwargs, language=language) self.name = name - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.BUILTIN] - def log_tried(self) -> str: return 'builtin' |