]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove dead code in bfd_check_format_matches
authorAlan Modra <amodra@gmail.com>
Mon, 6 Jan 2025 12:12:10 +0000 (22:42 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 7 Jan 2025 00:42:04 +0000 (11:12 +1030)
Commit cb001c0d283d made code added in 64bfc2584c01 dead.  Remove it.

bfd/format.c

index d0077589dc24ce6862bf008dc26f8415bca0d631..125815935f6cb4b8c3a4f5322281bc1baa69719e 100644 (file)
@@ -535,14 +535,6 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching)
       if (cleanup)
        {
          int match_priority = abfd->xvec->match_priority;
-#if BFD_SUPPORTS_PLUGINS
-         /* If this object can be handled by a plugin, give that the
-            lowest priority; objects both handled by a plugin and
-            with an underlying object format will be claimed
-            separately by the plugin.  */
-         if (*target == &plugin_vec)
-           match_priority = (*target)->match_priority;
-#endif
 
          if (abfd->format != bfd_archive
              || (bfd_has_map (abfd)