| 96 | } |
| 97 | |
| 98 | void removeCachedModuleWidget(engine::Module* const m) override |
| 99 | { |
| 100 | DISTRHO_SAFE_ASSERT_RETURN(m != nullptr,); |
| 101 | DISTRHO_SAFE_ASSERT_RETURN(m->model == this,); |
| 102 | |
| 103 | if (widgets.find(m) == widgets.end()) |
| 104 | return; |
| 105 | |
| 106 | if (widgetNeedsDeletion[m]) |
| 107 | delete widgets[m]; |
| 108 | |
| 109 | widgets.erase(m); |
| 110 | widgetNeedsDeletion.erase(m); |
| 111 | } |
| 112 | }; |
| 113 | |
| 114 | template <class TModule, class TModuleWidget> |
no test coverage detected