Skip to content

Commit

Permalink
Remove unused isinstance() in backends.py
Browse files Browse the repository at this point in the history
This dead code was made impossible in 251dff5.
  • Loading branch information
tristan957 authored and eli-schwartz committed Oct 4, 2023
1 parent e107b40 commit ed9d03a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mesonbuild/backend/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed9d03a

Please sign in to comment.