diff --git a/include/engine.hpp b/include/engine.hpp index ed909e6c..ae04d728 100644 --- a/include/engine.hpp +++ b/include/engine.hpp @@ -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() { diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index b53f6219..c9a64410 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -156,15 +156,9 @@ void ModuleWidget::disconnect() { } void ModuleWidget::create() { - if (module) { - module->onCreate(); - } } void ModuleWidget::_delete() { - if (module) { - module->onDelete(); - } } void ModuleWidget::reset() {