This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] zap longest_raw_hex_string
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 12 Jan 2002 00:19:13 -0500
- Subject: [patch] zap longest_raw_hex_string
FYI (I love deleting FIXMEs :-)
Andrew
2002-01-12 Andrew Cagney <ac131313@redhat.com>
* language.c (longest_raw_hex_string): Delete unused function.
Index: language.c
===================================================================
RCS file: /cvs/src/src/gdb/language.c,v
retrieving revision 1.17
diff -p -r1.17 language.c
*** language.c 2001/11/10 21:34:56 1.17
--- language.c 2002/01/12 05:17:20
*************** local_hex_format_custom (char *pre)
*** 596,624 ****
return form;
}
- #if 0
- /* FIXME: cagney/2000-03-04: This function does not appear to be used.
- It can be deleted once 5.0 has been released. */
- /* FIXME: cagney/2000-03-04: This code assumes that the compiler
- supports ``long long''. */
- /* Converts a number to hexadecimal (without leading "0x") and stores it in a
- static string. Returns a pointer to this string. */
-
- char *
- longest_raw_hex_string (LONGEST num)
- {
- static char res_longest_raw_hex_string[50];
- long long ll = num; /* MERGEBUG ?? see below */
- res_longest_raw_hex_string[0] = 0;
- /* MERGEBUG ?? As a quick fix I am replacing this with sprintf
- strcat_address_numeric (num, 0, res_longest_raw_hex_string, 50);
- */
-
- sprintf (res_longest_raw_hex_string, "%llx", ll);
- return res_longest_raw_hex_string;
- }
- #endif
-
/* Converts a number to hexadecimal and stores it in a static
string. Returns a pointer to this string. */
char *
--- 596,601 ----