diff --git a/clientgui/BOINCBaseFrame.cpp b/clientgui/BOINCBaseFrame.cpp index 8c93102a5e..7b24c0c729 100644 --- a/clientgui/BOINCBaseFrame.cpp +++ b/clientgui/BOINCBaseFrame.cpp @@ -306,7 +306,6 @@ void CBOINCBaseFrame::OnClose(wxCloseEvent& event) { wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseFrame::OnClose - Function Begin")); -#ifdef wxHAS_TASK_BAR_ICON if (!event.CanVeto() || IsIconized()) { wxGetApp().FrameClosed(); Destroy(); @@ -329,10 +328,6 @@ void CBOINCBaseFrame::OnClose(wxCloseEvent& event) { #endif Hide(); } -#else - wxGetApp().FrameClosed(); - Destroy(); -#endif wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseFrame::OnClose - Function End")); } @@ -373,9 +368,7 @@ void CBOINCBaseFrame::OnExit(wxCommandEvent& WXUNUSED(event)) { wxGetApp().DeleteMacSystemMenu(); #endif -#ifdef wxHAS_TASK_BAR_ICON wxGetApp().DeleteTaskBarIcon(); -#endif CDlgEventLog* eventLog = wxGetApp().GetEventLog(); if (eventLog) { diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index 554a7765da..5404ea997b 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -1127,14 +1127,12 @@ bool CBOINCGUIApp::IsModalDialogDisplayed() { return false; } -#if defined(__WXMSW__) || defined(__WXMAC__) void CBOINCGUIApp::DeleteTaskBarIcon() { if (m_pTaskBarIcon) { delete m_pTaskBarIcon; } m_pTaskBarIcon = NULL; } -#endif #ifdef __WXMAC__ void CBOINCGUIApp::DeleteMacSystemMenu() { diff --git a/clientgui/BOINCGUIApp.h b/clientgui/BOINCGUIApp.h index daaaf5ddf2..0696d64647 100644 --- a/clientgui/BOINCGUIApp.h +++ b/clientgui/BOINCGUIApp.h @@ -127,11 +127,8 @@ public: wxString GetDataDirectory() { return m_strBOINCMGRDataDirectory; } wxString GetArguments() { return m_strBOINCArguments; } CDlgEventLog* GetEventLog() { return m_pEventLog; } - -#if defined(__WXMSW__) || defined(__WXMAC__) CTaskBarIcon* GetTaskBarIcon() { return m_pTaskBarIcon; } void DeleteTaskBarIcon(); -#endif bool IsAccessibilityEnabled() { return m_bAccessibilityEnabled; }