[2/4] XML writer: drop write_elf_symbols_table variable emitted_syms

Message ID 20220121173005.3196387-3-gprocida@google.com
State New
Headers
Series small XML writer changes |

Commit Message

Giuliano Procida Jan. 21, 2022, 5:30 p.m. UTC
  This was introduced in commit e2d45017 and was unused then.

	* src/abg-writer.cc (write_elf_symbols_table): Drop unused
	local variable emitted_syms.

Reviewed-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Giuliano Procida <gprocida@google.com>
---
 src/abg-writer.cc | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Dodji Seketeli Feb. 25, 2022, 9:50 a.m. UTC | #1
Giuliano Procida <gprocida@google.com> a écrit:

> This was introduced in commit e2d45017 and was unused then.
>
> 	* src/abg-writer.cc (write_elf_symbols_table): Drop unused
> 	local variable emitted_syms.
>
> Reviewed-by: Matthias Maennich <maennich@google.com>
> Signed-off-by: Giuliano Procida <gprocida@google.com>

Applied to master, thanks!

[...]

Cheers,
  

Patch

diff --git a/src/abg-writer.cc b/src/abg-writer.cc
index 525f6682..53adca24 100644
--- a/src/abg-writer.cc
+++ b/src/abg-writer.cc
@@ -3158,7 +3158,6 @@  write_elf_symbols_table(const elf_symbols&	syms,
   if (syms.empty())
     return false;
 
-  unordered_map<string, bool> emitted_syms;
   for (elf_symbols::const_iterator it = syms.begin(); it != syms.end(); ++it)
     write_elf_symbol(*it, ctxt, indent);