Remove dead code in bfd_check_format_matches

Message ID Z30My3035ZSKz-pk@squeak.grove.modra.org
State New
Headers
Series Remove dead code in bfd_check_format_matches |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 fail Patch failed to apply

Commit Message

Alan Modra Jan. 7, 2025, 11:15 a.m. UTC
  Commit cb001c0d283d made code added in 64bfc2584c01 dead.  Remove it.
(*target) == abfd->xvec
  

Patch

diff --git a/bfd/format.c b/bfd/format.c
index d0077589dc2..125815935f6 100644
--- a/bfd/format.c
+++ b/bfd/format.c
@@ -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)