diff options
Diffstat (limited to 'src/gui/ControlPanel.cpp')
-rw-r--r-- | src/gui/ControlPanel.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp index 7916af9e..4dbb9ba0 100644 --- a/src/gui/ControlPanel.cpp +++ b/src/gui/ControlPanel.cpp @@ -128,12 +128,9 @@ ControlPanel::add_port(SharedPtr<const PortModel> pm) void ControlPanel::remove_port(const Path& path) { - bool was_first = false; for (vector<Control*>::iterator cg = _controls.begin(); cg != _controls.end(); ++cg) { if ((*cg)->port_model()->path() == path) { _control_box->remove(**cg); - if (cg == _controls.begin()) - was_first = true; _controls.erase(cg); break; } |