From 7f904c28f5cd2dc91a118ae6169d6993aaf71f63 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 26 Nov 2016 22:02:56 -0500 Subject: Remove unused functions and declarations 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/ui-out.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'gdb/ui-out.c') diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 10f7335..528ea04 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -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 */ -} -- cgit v1.1