* PATCH: remove unused code from dlltool.c
@ 2005-05-02 6:11 Ben Elliston
2005-05-02 18:43 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Ben Elliston @ 2005-05-02 6:11 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 1984 bytes --]
Okay for mainline?
2005-05-02 Ben Elliston <bje@au.ibm.com>
* dlltool.c (dtab): Remove empty function.
(process_duplicates): Remove calls to dtab().
Index: dlltool.c
===================================================================
RCS file: /home/bje/src-cvs/src/binutils/dlltool.c,v
retrieving revision 1.59
diff -u -p -r1.59 dlltool.c
--- dlltool.c 23 Feb 2005 12:25:57 -0000 1.59
+++ dlltool.c 2 May 2005 06:10:06 -0000
@@ -703,7 +703,6 @@ static void gen_lib_file (void);
static int pfunc (const void *, const void *);
static int nfunc (const void *, const void *);
static void remove_null_names (export_type **);
-static void dtab (export_type **);
static void process_duplicates (export_type **);
static void fill_ordinals (export_type **);
static int alphafunc (const void *, const void *);
@@ -2857,27 +2856,6 @@ remove_null_names (export_type **ptr)
}
static void
-dtab (export_type **ptr ATTRIBUTE_UNUSED)
-{
-#ifdef SACDEBUG
- int i;
- for (i = 0; i < d_nfuncs; i++)
- {
- if (ptr[i])
- {
- printf ("%d %s @ %d %s%s%s\n",
- i, ptr[i]->name, ptr[i]->ordinal,
- ptr[i]->noname ? "NONAME " : "",
- ptr[i]->constant ? "CONSTANT" : "",
- ptr[i]->data ? "DATA" : "");
- }
- else
- printf ("empty\n");
- }
-#endif
-}
-
-static void
process_duplicates (export_type **d_export_vec)
{
int more = 1;
@@ -2889,7 +2867,6 @@ process_duplicates (export_type **d_expo
/* Remove duplicates. */
qsort (d_export_vec, d_nfuncs, sizeof (export_type *), nfunc);
- dtab (d_export_vec);
for (i = 0; i < d_nfuncs - 1; i++)
{
if (strcmp (d_export_vec[i]->name,
@@ -2918,9 +2895,7 @@ process_duplicates (export_type **d_expo
d_export_vec[i] = 0;
}
- dtab (d_export_vec);
remove_null_names (d_export_vec);
- dtab (d_export_vec);
}
}
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: remove unused code from dlltool.c
2005-05-02 6:11 PATCH: remove unused code from dlltool.c Ben Elliston
@ 2005-05-02 18:43 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2005-05-02 18:43 UTC (permalink / raw)
To: Ben Elliston; +Cc: binutils
Ben Elliston <bje@au1.ibm.com> writes:
> 2005-05-02 Ben Elliston <bje@au.ibm.com>
>
> * dlltool.c (dtab): Remove empty function.
> (process_duplicates): Remove calls to dtab().
OK. Thanks.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-02 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 6:11 PATCH: remove unused code from dlltool.c Ben Elliston
2005-05-02 18:43 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).