diff options
author | David Robillard <d@drobilla.net> | 2011-06-11 18:05:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-11 18:05:56 +0000 |
commit | 6201df44e0187cb0606aaf1b9858c099db2a93c6 (patch) | |
tree | 15ee10e09967fbc9d85b7503ca306c812ac2bace /src/gui | |
parent | 15611d1f9d7a6aba34b70ccaf63f564d565b55f3 (diff) | |
download | ingen-6201df44e0187cb0606aaf1b9858c099db2a93c6.tar.gz ingen-6201df44e0187cb0606aaf1b9858c099db2a93c6.tar.bz2 ingen-6201df44e0187cb0606aaf1b9858c099db2a93c6.zip |
Remove dead code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3385 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-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; } |