diff options
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index d1afb1a..32136e3 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -82,12 +82,7 @@ PatchageEvent::execute(Patchage* patchage) } else if (_type == PORT_DESTRUCTION) { - PatchagePort* port = patchage->canvas()->remove_port(_port_1); - if (port) { - delete port; - } else { - Raul::error << "Unable to find port `" << _port_1 << "' to destroy" << endl; - } + patchage->canvas()->remove_port(_port_1); } else if (_type == CONNECTION) { |