diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 15:25:25 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 15:25:25 +0000 |
commit | c7037be10d946a1e11e3e30d7fc82656fa17aa93 (patch) | |
tree | 45c51020d6a9af724a8d9da03a72dd1f9c1e9c77 /gdb/tui/tuiLayout.c | |
parent | cd87e7699031fb3d82ac056020b1bf7c8f0aab1f (diff) | |
download | gdb-c7037be10d946a1e11e3e30d7fc82656fa17aa93.zip gdb-c7037be10d946a1e11e3e30d7fc82656fa17aa93.tar.gz gdb-c7037be10d946a1e11e3e30d7fc82656fa17aa93.tar.bz2 |
* tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
use tuiShowFrameInfo instead of tuiSetLocatorContent.
* tuiLayout.h (showLayout): Remove.
* tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
(_showSourceDisassemCommand): Likewise.
(showLayout): Make it static.
(lastLayout): Remove.
Diffstat (limited to 'gdb/tui/tuiLayout.c')
-rw-r--r-- | gdb/tui/tuiLayout.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c index 7db2b70..c3eae72 100644 --- a/gdb/tui/tuiLayout.c +++ b/gdb/tui/tuiLayout.c @@ -58,7 +58,7 @@ /******************************* ** Static Local Decls ********************************/ - +static void showLayout (TuiLayoutType); static void _initGenWinInfo (TuiGenWinInfoPtr, TuiWinType, int, int, int, int); static void _initAndMakeWin (Opaque *, TuiWinType, int, int, int, int, int); static void _showSourceOrDisassemAndCommand (TuiLayoutType); @@ -86,20 +86,8 @@ static void _tuiHandleXDBLayout (TuiLayoutDefPtr); #define LAYOUT_USAGE "Usage: layout prev | next | <layout_name> \n" -/*************************************** -** Static Local Data -***************************************/ -static TuiLayoutType lastLayout = UNDEFINED_LAYOUT; - -/*************************************** -** PUBLIC FUNCTIONS -***************************************/ - -/* - ** showLayout(). - ** Show the screen layout defined - */ -void +/* Show the screen layout defined. */ +static void showLayout (TuiLayoutType layout) { TuiLayoutType curLayout = currentLayout (); @@ -789,8 +777,6 @@ _showDisassemCommand (void) static void _showSourceDisassemCommand (void) { - TuiGenWinInfoPtr locator = locatorWinInfoPtr (); - if (currentLayout () != SRC_DISASSEM_COMMAND) { int cmdHeight, srcHeight, asmHeight; @@ -1083,7 +1069,6 @@ _showSourceOrDisassemAndCommand (TuiLayoutType layoutType) if (currentLayout () != layoutType) { TuiWinInfoPtr *winInfoPtr; - int areaLeft; int srcHeight, cmdHeight; TuiGenWinInfoPtr locator = locatorWinInfoPtr (); |