From 4904cc3dbf28595c4d914ece4f5b36cd25a9edfe Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 5 Feb 2019 02:45:40 -0500 Subject: [PATCH] Remove Reassign mode from MIDI-CV. --- src/Core/MIDI_CV.cpp | 7 ------- src/app/Scene.cpp | 1 - src/main.cpp | 12 +++++++----- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/Core/MIDI_CV.cpp b/src/Core/MIDI_CV.cpp index 5a7741bc..a2f0035b 100644 --- a/src/Core/MIDI_CV.cpp +++ b/src/Core/MIDI_CV.cpp @@ -36,7 +36,6 @@ struct MIDI_CV : Module { ROTATE_MODE, REUSE_MODE, RESET_MODE, - REASSIGN_MODE, MPE_MODE, NUM_POLY_MODES }; @@ -256,11 +255,6 @@ struct MIDI_CV : Module { return channels - 1; } break; - case REASSIGN_MODE: { - // TODO I forgot what this does. - return 0; - } - default: return 0; } } @@ -460,7 +454,6 @@ struct PolyModeItem : MenuItem { "Rotate", "Reuse", "Reset", - "Reassign", "MPE", }; for (int i = 0; i < MIDI_CV::NUM_POLY_MODES; i++) { diff --git a/src/app/Scene.cpp b/src/app/Scene.cpp index 90e64db2..0e94517c 100644 --- a/src/app/Scene.cpp +++ b/src/app/Scene.cpp @@ -58,7 +58,6 @@ void Scene::step() { // Autosave every 15 seconds int frame = APP->window->frame; if (frame > 0 && frame % (60 * 15) == 0) { - // DEBUG("frame %d", frame); APP->patch->save(asset::user("autosave.vcv")); settings.save(asset::user("settings.json")); } diff --git a/src/main.cpp b/src/main.cpp index 87a0f95a..14fbf187 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -84,11 +84,13 @@ int main(int argc, char *argv[]) { // We can now install a signal handler and log the output // Mac has its own decent crash handler #if defined ARCH_LIN || defined ARCH_WIN - signal(SIGABRT, fatalSignalHandler); - signal(SIGFPE, fatalSignalHandler); - signal(SIGILL, fatalSignalHandler); - signal(SIGSEGV, fatalSignalHandler); - signal(SIGTERM, fatalSignalHandler); + if (!devMode) { + signal(SIGABRT, fatalSignalHandler); + signal(SIGFPE, fatalSignalHandler); + signal(SIGILL, fatalSignalHandler); + signal(SIGSEGV, fatalSignalHandler); + signal(SIGTERM, fatalSignalHandler); + } #endif // Log environment