From ed9d03a0888d376000aa5781704ee3b139fcb8eb Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Mon, 14 Aug 2023 20:38:19 -0500 Subject: [PATCH] Remove unused isinstance() in backends.py This dead code was made impossible in 251dff5. --- mesonbuild/backend/backends.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index aef45b344c9d..4cee7a49805f 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1831,8 +1831,6 @@ def generate_header_install(self, d: InstallData) -> None: 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)