nm.c: Remove unused if/else and parameters.
diff --git a/src/ChangeLog b/src/ChangeLog
index 6c49eef..91e5d37 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-11 Marek Polacek <mpolacek@redhat.com>
+
+ * nm.c (show_symbols_sysv): Remove unused if/else, remove
+ unused `prefix' and `fname' parameters.
+
2011-05-07 Marek Polacek <mpolacek@redhat.com>
* unstrip.c (compare_sections_nonrel): Mark this function as static.
diff --git a/src/nm.c b/src/nm.c
index 01519a5..f78861e 100644
--- a/src/nm.c
+++ b/src/nm.c
@@ -718,8 +718,7 @@
/* Show symbols in SysV format. */
static void
-show_symbols_sysv (Ebl *ebl, GElf_Word strndx,
- const char *prefix, const char *fname, const char *fullname,
+show_symbols_sysv (Ebl *ebl, GElf_Word strndx, const char *fullname,
GElf_SymX *syms, size_t nsyms, int longest_name,
int longest_where)
{
@@ -762,10 +761,7 @@
int digits = length_map[gelf_getclass (ebl->elf) - 1][radix];
/* We always print this prolog. */
- if (prefix == NULL || 1)
- printf (gettext ("\n\nSymbols from %s:\n\n"), fullname);
- else
- printf (gettext ("\n\nSymbols from %s[%s]:\n\n"), prefix, fname);
+ printf (gettext ("\n\nSymbols from %s:\n\n"), fullname);
/* The header line. */
printf (gettext ("%*s%-*s %-*s Class Type %-*s %*s Section\n\n"),
@@ -1185,9 +1181,8 @@
switch (format)
{
case format_sysv:
- show_symbols_sysv (ebl, shdr->sh_link, prefix, fname,
- fullname, sym_mem, nentries, longest_name,
- longest_where);
+ show_symbols_sysv (ebl, shdr->sh_link, fullname, sym_mem, nentries,
+ longest_name, longest_where);
break;
case format_bsd: