From aa0e715fe63eed2795944fda68ab64270b51453b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Jun 2017 02:01:13 +0300 Subject: Remove useless extern declarations. --- src/gui/viewport.cpp | 1 - src/gui/widgets/browserbox_unittest.cc | 2 +- src/gui/widgets/tabs/setup_joystick.cpp | 2 -- src/gui/widgets/tabs/setup_video.cpp | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gui') diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 3fb80fd33..28d66975d 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -61,7 +61,6 @@ Viewport *viewport = nullptr; extern volatile int tick_time; -extern MiniStatusWindow *miniStatusWindow; Viewport::Viewport() : WindowContainer(nullptr), diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index f4a27c1e8..b3f536452 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -47,7 +47,7 @@ #include "debug.h" -extern const char *dirSeparator; + TEST_CASE("BrowserBox leak test1", "") { diff --git a/src/gui/widgets/tabs/setup_joystick.cpp b/src/gui/widgets/tabs/setup_joystick.cpp index 12cf331a0..490205b4b 100644 --- a/src/gui/widgets/tabs/setup_joystick.cpp +++ b/src/gui/widgets/tabs/setup_joystick.cpp @@ -40,8 +40,6 @@ #include "debug.h" -extern Joystick *joystick; - Setup_Joystick::Setup_Joystick(const Widget2 *const widget) : SetupTab(widget), mCalibrateLabel(new Label(this, diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp index b11b20f39..785ab5a33 100644 --- a/src/gui/widgets/tabs/setup_video.cpp +++ b/src/gui/widgets/tabs/setup_video.cpp @@ -61,8 +61,6 @@ #include "debug.h" -extern Graphics *mainGraphics; - Setup_Video::Setup_Video(const Widget2 *const widget) : SetupTab(widget), KeyListener(), -- cgit v1.2.3-70-g09d2