| 2997 | } |
| 2998 | |
| 2999 | void 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 | |
| 3018 | void CMainFrame::OnEditRemoveUnusedPatterns() |
| 3019 | { |
nothing calls this directly
no test coverage detected