aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-16 15:09:32 -0600
committerTom Tromey <tom@tromey.com>2018-05-23 09:16:59 -0600
commit2b9496b2b4781b21bc30a70337e24205f8a923d8 (patch)
tree26f8f54cdbeab2373cdcb51775044fd392752cca /gdb
parent81e25b7c91efcc3ff54605b11859375a5c885c8b (diff)
downloadgdb-2b9496b2b4781b21bc30a70337e24205f8a923d8.zip
gdb-2b9496b2b4781b21bc30a70337e24205f8a923d8.tar.gz
gdb-2b9496b2b4781b21bc30a70337e24205f8a923d8.tar.bz2
Remove internal_complaint
I happened to notice that gdb has both complaint_internal and internal_complaint. The latter is unused, so this patch removes it. gdb/ChangeLog 2018-05-23 Tom Tromey <tom@tromey.com> * complaints.c (internal_complaint): Remove. * complaints.h (internal_complaint): Remove.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/complaints.c10
-rw-r--r--gdb/complaints.h5
3 files changed, 5 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d5cd413..da94c03 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-23 Tom Tromey <tom@tromey.com>
+
+ * complaints.c (internal_complaint): Remove.
+ * complaints.h (internal_complaint): Remove.
+
2018-05-22 Maciej W. Rozycki <macro@mips.com>
* i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
diff --git a/gdb/complaints.c b/gdb/complaints.c
index 44e98f8..9e5df39 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -245,16 +245,6 @@ complaint_internal (struct complaints **complaints, const char *fmt, ...)
va_end (args);
}
-void
-internal_complaint (struct complaints **complaints, const char *file,
- int line, const char *fmt, ...)
-{
- va_list args;
- va_start (args, fmt);
- vcomplaint (complaints, file, line, fmt, args);
- va_end (args);
-}
-
/* Clear out / initialize all complaint counters that have ever been
incremented. If LESS_VERBOSE is 1, be less verbose about
successive complaints, since the messages are appearing all
diff --git a/gdb/complaints.h b/gdb/complaints.h
index 3c1b3c5..37648fb 100644
--- a/gdb/complaints.h
+++ b/gdb/complaints.h
@@ -47,11 +47,6 @@ extern void complaint_internal (struct complaints **complaints,
} \
while (0)
-extern void internal_complaint (struct complaints **complaints,
- const char *file, int line,
- const char *fmt,
- ...) ATTRIBUTE_PRINTF (4, 5);
-
/* Clear out / initialize all complaint counters that have ever been
incremented. If LESS_VERBOSE is 1, be less verbose about
successive complaints, since the messages are appearing all