aboutsummaryrefslogtreecommitdiff
path: root/gdb/xml-support.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-04-18 21:39:25 +0100
committerPedro Alves <palves@redhat.com>2017-04-18 23:52:05 +0100
commitfdd243b001585c5ca078342608332af77050c867 (patch)
tree11b2cdb05a42d05a22f3c6c5e57ee51cfa8ca03b /gdb/xml-support.c
parent4895cde29761f6c39fdb6c319ff4666ee39f5d28 (diff)
downloadgdb-fdd243b001585c5ca078342608332af77050c867.zip
gdb-fdd243b001585c5ca078342608332af77050c867.tar.gz
gdb-fdd243b001585c5ca078342608332af77050c867.tar.bz2
Eliminate obstack_printf
Not used anywhere. gdb/ChangeLog: 2017-04-18 Pedro Alves <palves@redhat.com> * xml-support.c (obstack_xml_printf): Delete. * xml-support.h (obstack_xml_printf): Delete.
Diffstat (limited to 'gdb/xml-support.c')
-rw-r--r--gdb/xml-support.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/gdb/xml-support.c b/gdb/xml-support.c
index 76c65c6..fff3997 100644
--- a/gdb/xml-support.c
+++ b/gdb/xml-support.c
@@ -997,46 +997,6 @@ show_debug_xml (struct ui_file *file, int from_tty,
fprintf_filtered (file, _("XML debugging is %s.\n"), value);
}
-void
-obstack_xml_printf (struct obstack *obstack, const char *format, ...)
-{
- va_list ap;
- const char *f;
- const char *prev;
- int percent = 0;
-
- va_start (ap, format);
-
- prev = format;
- for (f = format; *f; f++)
- {
- if (percent)
- {
- switch (*f)
- {
- case 's':
- {
- char *p;
- char *a = va_arg (ap, char *);
-
- obstack_grow (obstack, prev, f - prev - 1);
- p = xml_escape_text (a);
- obstack_grow_str (obstack, p);
- xfree (p);
- prev = f + 1;
- }
- break;
- }
- percent = 0;
- }
- else if (*f == '%')
- percent = 1;
- }
-
- obstack_grow_str (obstack, prev);
- va_end (ap);
-}
-
char *
xml_fetch_content_from_file (const char *filename, void *baton)
{