diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-08-29 19:20:41 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-12 19:16:59 -0400 |
commit | 36e7748d02ccd933f1ebe865564c7cee22fddbf6 (patch) | |
tree | 16e45cedeea065fd44fcc2954c32c0b110ff6920 /mesonbuild/dependencies | |
parent | 9a645c1c5a3a30d48f5addc1e4d73d9144ac8356 (diff) | |
download | meson-36e7748d02ccd933f1ebe865564c7cee22fddbf6.zip meson-36e7748d02ccd933f1ebe865564c7cee22fddbf6.tar.gz meson-36e7748d02ccd933f1ebe865564c7cee22fddbf6.tar.bz2 |
dependencies: simplify logging methods
A bunch of SystemDependency subclasses overrode log_tried() even though
they used the same function anyway. Delete them -- they still print
the same thing either way.
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r-- | mesonbuild/dependencies/dev.py | 6 | ||||
-rw-r--r-- | mesonbuild/dependencies/misc.py | 3 | ||||
-rw-r--r-- | mesonbuild/dependencies/ui.py | 6 |
3 files changed, 0 insertions, 15 deletions
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 12866ee..08c9280 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -115,9 +115,6 @@ class GTestDependencySystem(SystemDependency): else: return 'building self' - def log_tried(self) -> str: - return 'system' - class GTestDependencyPC(PkgConfigDependency): @@ -186,9 +183,6 @@ class GMockDependencySystem(SystemDependency): else: return 'building self' - def log_tried(self) -> str: - return 'system' - class GMockDependencyPC(PkgConfigDependency): diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 2edb0c7..f8204e3 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -393,9 +393,6 @@ class ShadercDependency(SystemDependency): break - def log_tried(self) -> str: - return 'system' - class CursesConfigToolDependency(ConfigToolDependency): diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index 18b7bff..66b13ec 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -50,9 +50,6 @@ class GLDependencySystem(SystemDependency): # FIXME: Detect version using self.clib_compiler return - def log_tried(self) -> str: - return 'system' - class GnuStepDependency(ConfigToolDependency): tools = ['gnustep-config'] @@ -237,9 +234,6 @@ class VulkanDependencySystem(SystemDependency): self.link_args.append(lib) return - def log_tried(self) -> str: - return 'system' - gl_factory = DependencyFactory( 'gl', [DependencyMethods.PKGCONFIG, DependencyMethods.SYSTEM], |