[pushed] Remove two unneeded forward declarations

Message ID 20240427172917.1165292-1-tom@tromey.com
State New
Headers
Series [pushed] Remove two unneeded forward declarations |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Tom Tromey April 27, 2024, 5:29 p.m. UTC
  I noticed a couple of forward declarations in the TUI that aren't
needed -- the declarations aren't used in the header files in which
they appear.  This patch removes these.
---
 gdb/tui/tui-source.h | 2 --
 gdb/tui/tui.h        | 2 --
 2 files changed, 4 deletions(-)
  

Patch

diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h
index 6d4ad4e39c2..103b11e7273 100644
--- a/gdb/tui/tui-source.h
+++ b/gdb/tui/tui-source.h
@@ -25,8 +25,6 @@ 
 #include "tui/tui-data.h"
 #include "tui-winsource.h"
 
-struct symtab;
-
 /* A TUI source window.  */
 
 struct tui_source_window : public tui_source_window_base
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index 00295107eac..388fd1e6eb2 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -39,8 +39,6 @@  extern bool debug_tui;
 #define TUI_SCOPED_DEBUG_START_END(fmt, ...) \
   scoped_debug_start_end (debug_tui, "tui", fmt, ##__VA_ARGS__)
 
-struct ui_file;
-
 /* Types of error returns.  */
 enum tui_status
 {