Skip to content

Commit

Permalink
ocpn_app et al: Remove some unused vars, #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Leamas authored and leamas committed Jan 22, 2024
1 parent 4790d4e commit 95f5731
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 1 addition & 7 deletions gui/src/ocpn_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ using namespace std::literals::chrono_literals;

extern int ShowNavWarning();

static void UpdatePositionCalculatedSogCog();

const char* const kUsage =
R"""(Usage:
opencpn -h | --help
Expand Down Expand Up @@ -245,7 +243,6 @@ WX_DEFINE_OBJARRAY(ArrayOfCDI);
OCPNPlatform *g_Platform;
BasePlatform *g_BasePlatform; // points to g_platform, handles brain-dead MS linker.

wxString g_vs;
bool g_bFirstRun;
bool g_bUpgradeInProcess;

Expand All @@ -259,9 +256,7 @@ MyFrame *gFrame;
ConsoleCanvas *console;

MyConfig *pConfig;
ChartBase *Current_Vector_Ch;
ChartDB *ChartData;
wxString *pdir_list[20];
int g_restore_stackindex;
int g_restore_dbindex;
double g_ChartNotRenderScaleFactor;
Expand Down Expand Up @@ -323,7 +318,7 @@ int file_user_id;

int quitflag;
int g_tick = 0;
int g_mem_total, g_mem_used, g_mem_initial;
int g_mem_total, g_mem_initial;

bool s_bSetSystemTime;

Expand Down Expand Up @@ -1214,7 +1209,6 @@ bool MyApp::OnInit() {
// Send init message
wxLogMessage(_T("\n\n________\n"));

g_vs = wxString(VERSION_FULL).Trim(true).Trim(false);
wxDateTime now = wxDateTime::Now();
LOG_INFO("------- OpenCPN version %s restarted at %s -------\n", VERSION_FULL,
now.FormatISODate().mb_str().data());
Expand Down
2 changes: 0 additions & 2 deletions gui/src/ocpn_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@
#include "androidUTIL.h"
#endif

static void UpdatePositionCalculatedSogCog();

//------------------------------------------------------------------------------
// Fwd Declarations
//------------------------------------------------------------------------------
Expand Down

0 comments on commit 95f5731

Please sign in to comment.