Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring and clean up #2 #100

Merged
merged 18 commits into from
Jan 16, 2021
Merged

Refactoring and clean up #2 #100

merged 18 commits into from
Jan 16, 2021

Conversation

drowe67
Copy link
Owner

@drowe67 drowe67 commented Jan 15, 2021

  1. Removing dead code, such as old, unused experimental features. ✔️
  2. Moving code out of the too-large main.cpp into other files. Especially code that is rarely modified. main.cpp has been reduced from 5000 to 3000 lines, most of that is the real time code that is tightly coupled. ✔️
  3. Disable or make optional the many fprintf(stderr,...) to the console. ✔️

@drowe67
Copy link
Owner Author

drowe67 commented Jan 15, 2021

@tmiw ☝️

@drowe67
Copy link
Owner Author

drowe67 commented Jan 15, 2021

@tmiw is it OK with you if I merge this? I don't want to mess up any of your PRs that are in progress. Nothing has changed functionally, just code moved around to different files. I'm pretty sure Git will merge everything OK.

Copy link
Collaborator

@tmiw tmiw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@drowe67, looks good other than one minor thing. It can probably be merged up regardless.

src/main.cpp Outdated
m_togBtnOnOff->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnOnOffUI), NULL, this);
m_togBtnSplit->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnSplitClickUI), NULL, this);
m_togBtnAnalog->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnAnalogClickUI), NULL, this);
//m_togBtnALC->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnALCClickUI), NULL, this);
//m_btnTogPTT->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnPTT_UI), NULL, this);
//m_btnTogPTT->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnPTT_UI), NULL, this);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the commented line just be removed since PTT connect/disconnect is already being handled elsewhere?

@drowe67 drowe67 merged commit b79e389 into master Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants