This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Remove more unused TUI functions
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 25 Aug 2002 12:46:49 +0200
- Subject: [PATCH]: Remove more unused TUI functions
Hi!
I've committed this patch to remove unused functions and fix some warnings (with -Wall).
Stephane
2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
* tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
(tuiShowAllExecInfosContent): Likewise.
* tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
(tuiShowAllExecInfosContent): Remove.
(tuiAllocSourceBuffer): Remove unused locals.
Index: tuiSourceWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiSourceWin.c,v
retrieving revision 1.13
diff -u -p -r1.13 tuiSourceWin.c
--- tuiSourceWin.c 24 Aug 2002 12:28:32 -0000 1.13
+++ tuiSourceWin.c 25 Aug 2002 08:43:10 -0000
@@ -302,22 +302,6 @@ tuiEraseSourceContent (TuiWinInfoPtr win
} /* tuiEraseSourceContent */
-/*
- ** tuiEraseAllSourceContent().
- */
-void
-tuiEraseAllSourceWinsContent (int displayPrompt)
-{
- int i;
-
- for (i = 0; i < (sourceWindows ())->count; i++)
- tuiEraseSourceContent ((TuiWinInfoPtr) (sourceWindows ())->list[i],
- displayPrompt);
-
- return;
-} /* tuiEraseAllSourceWinsContent */
-
-
/* Redraw the complete line of a source or disassembly window. */
static void
tui_show_source_line (TuiWinInfoPtr winInfo, int lineno)
@@ -607,21 +591,6 @@ tuiShowExecInfoContent (TuiWinInfoPtr wi
/*
- ** tuiShowAllExecInfosContent()
- */
-void
-tuiShowAllExecInfosContent (void)
-{
- int i;
-
- for (i = 0; i < (sourceWindows ())->count; i++)
- tuiShowExecInfoContent ((TuiWinInfoPtr) (sourceWindows ())->list[i]);
-
- return;
-} /* tuiShowAllExecInfosContent */
-
-
-/*
** tuiEraseExecInfoContent().
*/
void
@@ -676,8 +645,8 @@ tuiUpdateAllExecInfos (void)
TuiStatus
tuiAllocSourceBuffer (TuiWinInfoPtr winInfo)
{
- register char *srcLine, *srcLineBuf;
- register int i, lineWidth, c, maxLines;
+ register char *srcLineBuf;
+ register int i, lineWidth, maxLines;
TuiStatus ret = TUI_FAILURE;
maxLines = winInfo->generic.height; /* less the highlight box */
Index: tuiSourceWin.h
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiSourceWin.h,v
retrieving revision 1.9
diff -u -p -r1.9 tuiSourceWin.h
--- tuiSourceWin.h 24 Aug 2002 12:28:32 -0000 1.9
+++ tuiSourceWin.h 25 Aug 2002 08:43:10 -0000
@@ -32,14 +32,12 @@ extern void tuiUpdateSourceWindowsWithLi
extern void tuiUpdateSourceWindowsFromLocator (void);
extern void tuiClearSourceContent (TuiWinInfoPtr, int);
extern void tuiEraseSourceContent (TuiWinInfoPtr, int);
-extern void tuiEraseAllSourceWinsContent (int);
extern void tuiSetSourceContentNil (TuiWinInfoPtr, char *);
extern void tuiShowSourceContent (TuiWinInfoPtr);
extern void tuiHorizontalSourceScroll (TuiWinInfoPtr, TuiScrollDirection,
int);
extern TuiStatus tuiSetExecInfoContent (TuiWinInfoPtr);
extern void tuiShowExecInfoContent (TuiWinInfoPtr);
-extern void tuiShowAllExecInfosContent (void);
extern void tuiEraseExecInfoContent (TuiWinInfoPtr);
extern void tuiEraseAllExecInfosContent (void);
extern void tuiClearExecInfoContent (TuiWinInfoPtr);