Remove unused functions and declarations
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 27 Nov 2016 03:02:56 +0000 (22:02 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 27 Nov 2016 03:03:18 +0000 (22:03 -0500)
gdb/ChangeLog:

* ui-out.c (_initialize_ui_out): Remove.
(ui_out_set_flags): Remove.
(ui_out_clear_flags): Remove.
* ui-out.h (ui_out_begin_cleanup_end): Remove.
(ui_out_begin_cleanup_end): Remove.
(ui_out_set_flags): Remove.
(ui_out_clear_flags): Remove.
* mi/mi-out.c (_initialize_mi_out): Remove.
(mi_out_buffered): Remove.
* mi/mi-out.h (mi_out_buffered): Remove.

gdb/ChangeLog
gdb/mi/mi-out.c
gdb/mi/mi-out.h
gdb/ui-out.c
gdb/ui-out.h

index 745ab7b19f32eafc0b7a9718715493dd3af96f84..218fc1ddfd9581a1f089d9571d16e41f2597b5aa 100644 (file)
@@ -1,3 +1,16 @@
+2016-11-26  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (_initialize_ui_out): Remove.
+       (ui_out_set_flags): Remove.
+       (ui_out_clear_flags): Remove.
+       * ui-out.h (ui_out_begin_cleanup_end): Remove.
+       (ui_out_begin_cleanup_end): Remove.
+       (ui_out_set_flags): Remove.
+       (ui_out_clear_flags): Remove.
+       * mi/mi-out.c (_initialize_mi_out): Remove.
+       (mi_out_buffered): Remove.
+       * mi/mi-out.h (mi_out_buffered): Remove.
+
 2016-11-26  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * ui-out.h (struct ui_out_impl): Remove comment.
index 95132678013017f489ab6375649d5de2300ab3b0..491caf52e4ba784a0fe301a61affc1a00e9e0a56 100644 (file)
@@ -95,7 +95,6 @@ static const struct ui_out_impl mi_ui_out_impl =
 
 /* Prototypes for local functions */
 
-extern void _initialize_mi_out (void);
 static void field_separator (struct ui_out *uiout);
 static void mi_open (struct ui_out *uiout, const char *name,
                     enum ui_out_type type);
@@ -360,17 +359,6 @@ mi_close (struct ui_out *uiout, enum ui_out_type type)
   data->suppress_field_separator = 0;
 }
 
-/* Add a string to the buffer.  */
-
-void
-mi_out_buffered (struct ui_out *uiout, char *string)
-{
-  mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
-  struct ui_file *stream = VEC_last (ui_filep, data->streams);
-
-  fprintf_unfiltered (stream, "%s", string);
-}
-
 /* Clear the buffer.  */
 
 void
index ace93bda1b16e92b34610e0b204ddef42a0119e3..ba1895055a264379edca1b06fd2a28ca14ce19cc 100644 (file)
@@ -26,7 +26,6 @@ struct ui_file;
 extern struct ui_out *mi_out_new (int mi_version);
 extern void mi_out_put (struct ui_out *uiout, struct ui_file *stream);
 extern void mi_out_rewind (struct ui_out *uiout);
-extern void mi_out_buffered (struct ui_out *uiout, char *string);
 
 /* Return the version number of the current MI.  */
 extern int mi_version (struct ui_out *uiout);
index 10f733518928255c341ecb1db4e9271c3cd4de1d..528ea049e8c7f00ab525ec76a404f4a266698f58 100644 (file)
@@ -179,7 +179,6 @@ static void uo_data_destroy (struct ui_out *uiout);
 
 /* Prototypes for local functions */
 
-extern void _initialize_ui_out (void);
 static void append_header_to_list (struct ui_out *uiout, int width,
                                   enum ui_align alignment, const char *col_name,
                                   const char *colhdr);
@@ -524,26 +523,6 @@ ui_out_redirect (struct ui_out *uiout, struct ui_file *outstream)
   return uo_redirect (uiout, outstream);
 }
 
-/* Set the flags specified by the mask given.  */
-int
-ui_out_set_flags (struct ui_out *uiout, int mask)
-{
-  int oldflags = uiout->flags;
-
-  uiout->flags |= mask;
-  return oldflags;
-}
-
-/* Clear the flags specified by the mask given.  */
-int
-ui_out_clear_flags (struct ui_out *uiout, int mask)
-{
-  int oldflags = uiout->flags;
-
-  uiout->flags &= ~mask;
-  return oldflags;
-}
-
 /* Test the flags against the mask given.  */
 int
 ui_out_test_flags (struct ui_out *uiout, int mask)
@@ -946,11 +925,3 @@ ui_out_destroy (struct ui_out *uiout)
   clear_table (uiout);
   xfree (uiout);
 }
-
-/* Standard gdb initialization hook.  */
-
-void
-_initialize_ui_out (void)
-{
-  /* nothing needs to be done */
-}
index a64160148f82b87080cb61966a962a6ad97744fd..936ab665fa8421dfd9cd3fc6cabae5205767c6a1 100644 (file)
@@ -69,10 +69,6 @@ extern void ui_out_begin (struct ui_out *uiout,
 
 extern void ui_out_end (struct ui_out *uiout, enum ui_out_type type);
 
-extern struct cleanup *ui_out_begin_cleanup_end (struct ui_out *uiout,
-                                                enum ui_out_type level_type,
-                                                const char *id);
-
 /* A table can be considered a special tuple/list combination with the
    implied structure: ``table = { hdr = { header, ... } , body = [ {
    field, ... }, ... ] }''.  If NR_ROWS is negative then there is at
@@ -131,10 +127,6 @@ extern void ui_out_wrap_hint (struct ui_out *uiout, char *identstring);
 
 extern void ui_out_flush (struct ui_out *uiout);
 
-extern int ui_out_set_flags (struct ui_out *uiout, int mask);
-
-extern int ui_out_clear_flags (struct ui_out *uiout, int mask);
-
 extern int ui_out_get_verblvl (struct ui_out *uiout);
 
 extern int ui_out_test_flags (struct ui_out *uiout, int mask);
This page took 0.031717 seconds and 4 git commands to generate.