summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2023-08-14 20:38:19 -0500
committerEli Schwartz <eschwartz93@gmail.com>2023-10-04 15:29:56 -0400
commited9d03a0888d376000aa5781704ee3b139fcb8eb (patch)
tree0b48227ef9bddf8fabdf3de0035cea2761f4f1ac
parente107b40225e90331613686982b07f16853c52cab (diff)
downloadmeson-ed9d03a0888d376000aa5781704ee3b139fcb8eb.tar.gz
Remove unused isinstance() in backends.py
This dead code was made impossible in 251dff5.
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index aef45b344..4cee7a498 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -1831,8 +1831,6 @@ class Backend:
outdir_name = os.path.join('{includedir}', subdir)
for f in h.get_sources():
- if not isinstance(f, File):
- raise MesonException(f'Invalid header type {f!r} can\'t be installed')
abspath = f.absolute_path(srcdir, builddir)
i = InstallDataBase(abspath, outdir, outdir_name, h.get_custom_install_mode(), h.subproject, tag='devel', follow_symlinks=h.follow_symlinks)
d.headers.append(i)