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/dub.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/dub.py')
-rw-r--r-- | mesonbuild/dependencies/dub.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mesonbuild/dependencies/dub.py b/mesonbuild/dependencies/dub.py index 8dfb486..6aebe7b 100644 --- a/mesonbuild/dependencies/dub.py +++ b/mesonbuild/dependencies/dub.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from .base import ExternalDependency, DependencyException, DependencyMethods, DependencyTypeName +from .base import ExternalDependency, DependencyException, DependencyTypeName from .pkgconfig import PkgConfigDependency from ..mesonlib import Popen_safe from ..programs import ExternalProgram @@ -234,7 +234,3 @@ class DubDependency(ExternalDependency): else: mlog.log('Found DUB:', mlog.red('NO')) return dubbin - - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.DUB] |