summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-12-05 14:48:39 -0500
committerEli Schwartz <eschwartz93@gmail.com>2023-12-05 19:52:23 -0500
commit39ecfc2d542ae7e248119b5dcb6f0a01493e2ae6 (patch)
tree8aa83601e664b5bcd19f786df5a15f0c0fab141f /mesonbuild/compilers/compilers.py
parent5f659af870011e74299d1455a65c2cd5f5ace51f (diff)
downloadmeson-39ecfc2d542ae7e248119b5dcb6f0a01493e2ae6.tar.gz
compilers: drop dead code
no_warn_args is unused. Its only purpose was to implement automatic hiding of UB in transpiled code, and it was not used at all in languages other than C/C++ -- specifically when the C/C++ source files were created by transpiling from vala or cython.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index a7bb6c417..671e3f9cd 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1377,10 +1377,6 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
"""Arguments required for a debug build."""
return []
- def get_no_warn_args(self) -> T.List[str]:
- """Arguments to completely disable warnings."""
- return []
-
def needs_static_linker(self) -> bool:
raise NotImplementedError(f'There is no static linker for {self.language}')