Skip to content

Commit

Permalink
Remove unused function definitons (updated)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vulpine05 committed Oct 19, 2024
1 parent fbbd12d commit aa35989
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 48 deletions.
1 change: 0 additions & 1 deletion clientgui/AsyncRPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ class AsyncRPCDlg : public wxDialog

public:
AsyncRPCDlg();
void OnRPCDlgTimer(wxTimerEvent &event);
void OnExit(wxCommandEvent& event);
};

Expand Down
1 change: 0 additions & 1 deletion clientgui/BOINCListCtrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class CBOINCListCtrl : public LISTCTRL_BASE {
void SetStandardColumnOrder();
bool IsColumnOrderStandard();
void SetDefaultColumnDisplay();
void InsertShownColumns(wxString tokenized, char * delimiters);

long GetFocusedItem() { return GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED); }
long GetFirstSelected() { return GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); }
Expand Down
5 changes: 0 additions & 5 deletions clientgui/DlgEventLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ class CDlgEventLog : public DlgEventLogBase
virtual wxString OnListGetItemText( long item, long column ) const;
virtual wxListItemAttr* OnListGetItemAttr( long item ) const;

bool OnSaveState(wxConfigBase* pConfig);
bool OnRestoreState(wxConfigBase* pConfig);

void UpdateButtons();

private:
Expand Down Expand Up @@ -198,8 +195,6 @@ class CDlgEventLog : public DlgEventLogBase
void OnSize(wxSizeEvent& event);
void OnMove(wxMoveEvent& event);

void OnMouseUp(wxMouseEvent& event);

void ResetMessageFiltering();

void FindErrorMessages(bool isFiltered);
Expand Down
6 changes: 2 additions & 4 deletions clientgui/DlgOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ class CDlgOptions: public wxDialog
wxString GetDefaultDialupConnection() const;
void SetDefaultDialupConnection(wxString value);

bool UpdateControlStates();

bool ReadSettings();
bool SaveSettings();

Expand Down Expand Up @@ -188,8 +186,8 @@ class CDlgOptions: public wxDialog
wxTextCtrl* m_SOCKSPortCtrl;
wxTextCtrl* m_SOCKSUsernameCtrl;
wxTextCtrl* m_SOCKSPasswordCtrl;
wxTextCtrl* m_HTTPNoProxiesCtrl;
wxTextCtrl* m_SOCKSNoProxiesCtrl;
wxTextCtrl* m_HTTPNoProxiesCtrl;
wxTextCtrl* m_SOCKSNoProxiesCtrl;
////@end CDlgOptions member variables
bool m_bRetrievedProxyConfiguration;
};
Expand Down
4 changes: 0 additions & 4 deletions clientgui/MainDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ class CMainDocument : public wxObject {
);
int Reconnect();

int CachedStateLock();
int CachedStateUnlock();

void ForceDisconnect();
int FrameShutdownDetected();
int CoreClientQuit();
Expand Down Expand Up @@ -239,7 +236,6 @@ class CMainDocument : public wxObject {

int ProjectNoMoreWork(int iIndex);
int ProjectAllowMoreWork(int iIndex);
int ProjectAttach(const wxString& strURL, const wxString& strAccountKey);
int ProjectDetach(int iIndex);
int ProjectUpdate(int iIndex);
int ProjectReset(int iIndex);
Expand Down
1 change: 0 additions & 1 deletion clientgui/ViewNotices.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class CViewNotices : public CBOINCBaseView {
virtual bool OnRestoreState( wxConfigBase* pConfig );

virtual void OnListRender( wxTimerEvent& event );
void OnRetryButton( wxCommandEvent& event );
};

#endif
33 changes: 16 additions & 17 deletions clientgui/sg_BoincSimpleFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,30 @@ class CSimpleGUIPanel : public wxPanel
CSimpleGUIPanel(wxWindow* parent);

~CSimpleGUIPanel();
//
//
// My tasks panel (shown when there are active tasks)
CSimpleTaskPanel *m_taskPanel;
// My projects panel
CSimpleProjectPanel *m_projPanel;
////////////////////////////;
// My projects panel
CSimpleProjectPanel *m_projPanel;
////////////////////////////;

void SetBackgroundBitmap();
void ReskinInterface();
void UpdateProjectView();
void UpdateProjectView();
void OnFrameRender();
void OnProjectsAttachToProject(wxCommandEvent& event);
void OnProjectsAttachToProject(wxCommandEvent& event);
void OnShowNotices(wxCommandEvent& event);
void OnSuspendResume(wxCommandEvent& event);
void OnHelp( wxCommandEvent& event );
void SetDlgOpen(bool newDlgState) { dlgOpen = newDlgState; }
bool GetDlgOpen() { return dlgOpen; }
void SetDlgOpen(bool newDlgState) { dlgOpen = newDlgState; }
bool GetDlgOpen() { return dlgOpen; }
wxBitmap *GetBackgroundBitMap() { return &m_bmpBg; }
void OnCheckForNewNotices(wxTimerEvent& WXUNUSED(event));
void NoticesViewed();

//////////
wxBoxSizer *mainSizer;
//////////
//////////
wxBoxSizer *mainSizer;
//////////
bool m_bNewNoticeAlert;
bool m_bNoticesButtonIsRed;
DECLARE_EVENT_TABLE()
Expand All @@ -86,7 +86,7 @@ class CSimpleGUIPanel : public wxPanel
private:
int m_irefreshCount;
bool dlgOpen;
wxTimer* checkForNewNoticesTimer;
wxTimer* checkForNewNoticesTimer;
wxString m_sSuspendButtonToolTip;
wxString m_sResumeButtonToolTip;
};
Expand All @@ -112,21 +112,20 @@ class CSimpleFrame : public CBOINCBaseFrame
void OnPreferences( wxCommandEvent& event );
void OnOptions( wxCommandEvent& event );
void OnDiagnosticLogFlags( wxCommandEvent& event );
void OnOldSG( wxCommandEvent& event );
void OnHelp( wxHelpEvent& event );
void OnHelpBOINC( wxCommandEvent& event );
void OnHelpAbout( wxCommandEvent& event );
void OnCheckVersion( wxCommandEvent& event );
void OnReportBug( wxCommandEvent& event );

void OnConnect(CFrameEvent& event );
void OnConnect(CFrameEvent& event );
void OnReloadSkin( CFrameEvent& event );
void OnRefreshView( CFrameEvent& event );
void OnNotification( CFrameEvent& event );
void OnEventLog(wxCommandEvent& event);
void OnDarkModeChanged( wxSysColourChangedEvent& event );

void SetMsgsDlgOpen(CDlgMessages* newDlgPtr) { dlgMsgsPtr = newDlgPtr; }
void SetMsgsDlgOpen(CDlgMessages* newDlgPtr) { dlgMsgsPtr = newDlgPtr; }
bool isMessagesDlgOpen() { return (dlgMsgsPtr != NULL); }

bool SaveWindowPosition();
Expand All @@ -145,12 +144,12 @@ class CSimpleFrame : public CBOINCBaseFrame
protected:
virtual int _GetCurrentViewPage();

wxMenuBar* m_pMenubar;
wxMenuBar* m_pMenubar;
wxMenu* m_pSubmenuSkins;
wxAcceleratorEntry m_Shortcuts[3];
wxAcceleratorTable* m_pAccelTable;

CSimpleGUIPanel* m_pBackgroundPanel;
CSimpleGUIPanel* m_pBackgroundPanel;


private:
Expand Down
24 changes: 9 additions & 15 deletions clientgui/sg_DlgPreferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ class CPanelPreferences: public wxPanel
/// wxEVT_ERASE_BACKGROUND event handler for ID_DLGPREFERENCES
void OnEraseBackground( wxEraseEvent& event );

/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_WORKBETWEENBEGIN
void OnWorkBetweenBeginSelected( wxCommandEvent& event );

/// wxEVT_COMMAND_COMBOBOX_SELECTED event handler for ID_CONNECTBETWEENBEGIN
void OnConnectBetweenBeginSelected( wxCommandEvent& event );

/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SIMPLE_HELP
void OnButtonHelp( wxCommandEvent& event );

Expand All @@ -129,21 +123,21 @@ class CPanelPreferences: public wxPanel
bool UpdateControlStates();

bool ClearPreferenceSettings();
wxString DoubleToTimeString(double dt);
double TimeStringToDouble(wxString timeStr);
wxString DoubleToTimeString(double dt);
double TimeStringToDouble(wxString timeStr);
double RoundToHundredths(double td);
void DisplayValue(double value, wxTextCtrl* textCtrl, wxCheckBox* checkBox=NULL);
bool ReadPreferenceSettings();
bool SavePreferenceSettings();
bool ValidateInput();
bool ValidateInput();
bool m_bUsingLocalPrefs;
void ShowErrorMessage(wxString& msg,wxTextCtrl* errorCtrl);
bool IsValidFloatChar(const wxChar& ch);
bool IsValidFloatValue(const wxString& value, bool allowNegative=false);
void ShowErrorMessage(wxString& msg,wxTextCtrl* errorCtrl);
bool IsValidFloatChar(const wxChar& ch);
bool IsValidFloatValue(const wxString& value, bool allowNegative=false);
bool IsValidFloatValueBetween(const wxString& value, double minVal, double maxVal);
bool IsValidTimeChar(const wxChar& ch);
bool IsValidTimeValue(const wxString& value);
void OnHandleCheckboxEvent(wxCommandEvent& ev);
bool IsValidTimeChar(const wxChar& ch);
bool IsValidTimeValue(const wxString& value);
void OnHandleCheckboxEvent(wxCommandEvent& ev);

void addNewRowToSizer(wxSizer* toSizer, wxString& toolTipText,
wxWindow* first, wxWindow* second, wxWindow* third,
Expand Down

0 comments on commit aa35989

Please sign in to comment.