Browse Source

Remove Module::onCreate and Module::onDelete

tags/v0.6.1
Andrew Belt 7 years ago
parent
commit
7e49a697d4
2 changed files with 2 additions and 8 deletions
  1. +2
    -2
      include/engine.hpp
  2. +0
    -6
      src/app/ModuleWidget.cpp

+ 2
- 2
include/engine.hpp View File

@@ -75,9 +75,9 @@ struct Module {
/** Called when the engine sample rate is changed
*/
virtual void onSampleRateChange() {}
/** Called when module is created by the Module Browser or by cloning, NOT when a patch is loaded */
/** Deprecated */
virtual void onCreate() {}
/** Called when user explicitly deletes the module, NOT when Rack is closed or a new patch is loaded */
/** Deprecated */
virtual void onDelete() {}
/** Called when user clicks Initialize in the module context menu */
virtual void onReset() {


+ 0
- 6
src/app/ModuleWidget.cpp View File

@@ -156,15 +156,9 @@ void ModuleWidget::disconnect() {
}

void ModuleWidget::create() {
if (module) {
module->onCreate();
}
}

void ModuleWidget::_delete() {
if (module) {
module->onDelete();
}
}

void ModuleWidget::reset() {


Loading…
Cancel
Save