From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88789 invoked by alias); 24 Nov 2016 15:24:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 88720 invoked by uid 89); 24 Nov 2016 15:24:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:sk:cable-1, H*RU:sk:cable-1, H*r:sk:cable-1, H*m:24725 X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Nov 2016 15:24:34 +0000 X-ASG-Debug-ID: 1480001071-0c856e65d5b89c60001-fS2M51 Received: from smtp.electronicbox.net (smtp.electronicbox.net [96.127.255.82]) by barracuda.ebox.ca with ESMTP id jfgxM03QGZeSg39L (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Nov 2016 10:24:31 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.lan (cable-11.246.173-162.electronicbox.net [173.246.11.162]) by smtp.electronicbox.net (Postfix) with ESMTP id A0339440E7D; Thu, 24 Nov 2016 10:24:31 -0500 (EST) From: Simon Marchi X-Barracuda-Effective-Source-IP: cable-11.246.173-162.electronicbox.net[173.246.11.162] X-Barracuda-Apparent-Source-IP: 173.246.11.162 X-Barracuda-RBL-IP: 173.246.11.162 To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 01/22] Remove unused functions and declarations Date: Thu, 24 Nov 2016 15:24:00 -0000 X-ASG-Orig-Subj: [PATCH 01/22] Remove unused functions and declarations Message-Id: <20161124152428.24725-2-simon.marchi@polymtl.ca> In-Reply-To: <20161124152428.24725-1-simon.marchi@polymtl.ca> References: <20161124152428.24725-1-simon.marchi@polymtl.ca> X-Barracuda-Connect: smtp.electronicbox.net[96.127.255.82] X-Barracuda-Start-Time: 1480001071 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 4329 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests=BSF_SC0_MISMATCH_TO X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.34709 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00750.txt.bz2 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/mi/mi-out.c | 12 ------------ gdb/mi/mi-out.h | 1 - gdb/ui-out.c | 29 ----------------------------- gdb/ui-out.h | 8 -------- 4 files changed, 50 deletions(-) diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 9513267..491caf5 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -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 diff --git a/gdb/mi/mi-out.h b/gdb/mi/mi-out.h index ace93bd..ba18950 100644 --- a/gdb/mi/mi-out.h +++ b/gdb/mi/mi-out.h @@ -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); diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 60d18ee..249d059 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -181,7 +181,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); @@ -526,26 +525,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) @@ -948,11 +927,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 */ -} diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 9e1e74d..a5e693c 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -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); -- 2.10.0