Skip to content

Commit

Permalink
Remove commented code with events no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Oct 10, 2023
1 parent 32ed898 commit 4dc3280
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
14 changes: 1 addition & 13 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2739,13 +2739,8 @@ void SamApp::InstallPythonPackage(const std::string& pip_name) {
enum { ID_TechTree = wxID_HIGHEST+98, ID_FinTree };

BEGIN_EVENT_TABLE(ConfigDialog, wxDialog)
//EVT_DATAVIEW_ITEM_START_EDITING(ID_TechTree, ConfigDialog::OnTreeActivated)
//EVT_DATAVIEW_ITEM_EDITING_STARTED(ID_TechTree, ConfigDialog::OnTreeActivated)
//EVT_DATAVIEW_ITEM_EDITING_DONE(ID_TechTree, ConfigDialog::OnTreeActivated)
//EVT_DATAVIEW_ITEM_START_EDITING(ID_FinTree, ConfigDialog::OnFinTreeDoubleClick)
EVT_DATAVIEW_ITEM_COLLAPSING(ID_TechTree, ConfigDialog::OnTechTreeCollapsing)
EVT_DATAVIEW_ITEM_COLLAPSING(ID_FinTree, ConfigDialog::OnFinTreeCollapsing)
//EVT_DATAVIEW_ITEM_ACTIVATED(ID_TechTree, ConfigDialog::OnTreeActivated)
EVT_DATAVIEW_ITEM_ACTIVATED(ID_FinTree, ConfigDialog::OnFinTreeDoubleClick)
EVT_DATAVIEW_SELECTION_CHANGED(ID_TechTree, ConfigDialog::OnTechTree)
EVT_DATAVIEW_SELECTION_CHANGED(ID_FinTree, ConfigDialog::OnFinTree)
Expand Down Expand Up @@ -3019,14 +3014,7 @@ void ConfigDialog::UpdateFinTree()
}
}

/*
void ConfigDialog::OnTreeActivated(wxDataViewEvent &evt)
{
// when does this happen
wxMessageBox("Activated");
evt.Veto();
}
*/


void ConfigDialog::OnTechTreeCollapsing(wxDataViewEvent& evt)
{
Expand Down
1 change: 0 additions & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ class ConfigDialog : public wxDialog
private:
void PopulateTech();
bool ValidateSelections();
// void OnTreeActivated(wxDataViewEvent& evt);
void OnTechTreeCollapsing(wxDataViewEvent& evt);
void OnTechTree(wxDataViewEvent &);
void OnFinTreeCollapsing(wxDataViewEvent& evt);
Expand Down

0 comments on commit 4dc3280

Please sign in to comment.