diff options
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index ebbfc39..fe9a26b 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -62,6 +62,17 @@ PatchageCanvas::find_module(const string& name, ModuleType type) return io_module; } +void +PatchageCanvas::remove_module(const string& name) +{ + ModuleIndex::iterator i = _module_index.find(name); + while (i != _module_index.end()) { + delete i->second; + _module_index.erase(i); + i = _module_index.find(name); + } +} + PatchagePort* PatchageCanvas::find_port(const PortID& id) { |