aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-14 15:36:17 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-22 09:13:41 -0700
commitd636b92c1adc1588ff11b6ee4972c4bdd686f433 (patch)
tree65511141ccd85f5c39a3e5b306a10086df595e2c /mesonbuild/backend/backends.py
parent7213b7d81fb2cc53d7fdca35409281045bae0fdc (diff)
downloadmeson-d636b92c1adc1588ff11b6ee4972c4bdd686f433.zip
meson-d636b92c1adc1588ff11b6ee4972c4bdd686f433.tar.gz
meson-d636b92c1adc1588ff11b6ee4972c4bdd686f433.tar.bz2
install_*: FileMode doesn't need to be None
There's no reason to allow None into the backend, it already has code to check that all of the values of the FileMode object are None, so let's use that, which is much simpler all the way down.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 4e1ac1e..8df9705 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -42,9 +42,6 @@ if T.TYPE_CHECKING:
from ..interpreter import Interpreter, Test
from ..mesonlib import FileMode
- InstallType = T.List[T.Tuple[str, str, T.Optional['FileMode']]]
- InstallSubdirsType = T.List[T.Tuple[str, str, T.Optional['FileMode'], T.Tuple[T.Set[str], T.Set[str]]]]
-
# Languages that can mix with C or C++ but don't support unity builds yet
# because the syntax we use for unity builds is specific to C/++/ObjC/++.
# Assembly files cannot be unitified and neither can LLVM IR files