MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnEditRemoveUnusedInstruments

Method OnEditRemoveUnusedInstruments

Source/MainFrm.cpp:2999–3016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2997}
2998
2999void CMainFrame::OnEditRemoveUnusedInstruments()
3000{
3001 // Removes unused instruments in the module
3002
3003 CFamiTrackerDoc &Doc = GetDoc();
3004
3005 if (AfxMessageBox(IDS_REMOVE_INSTRUMENTS, MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2) == IDNO)
3006 return;
3007
3008 // Current instrument might disappear
3009 CloseInstrumentEditor();
3010
3011 Doc.GetModule()->RemoveUnusedInstruments(); // // //
3012 Doc.ModifyIrreversible();
3013
3014 // Update instrument list
3015 Doc.UpdateAllViews(NULL, UPDATE_INSTRUMENT);
3016}
3017
3018void CMainFrame::OnEditRemoveUnusedPatterns()
3019{

Callers

nothing calls this directly

Calls 3

GetModuleMethod · 0.80
ModifyIrreversibleMethod · 0.80

Tested by

no test coverage detected