From 6201df44e0187cb0606aaf1b9858c099db2a93c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Jun 2011 18:05:56 +0000 Subject: Remove dead code. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3385 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/ControlPanel.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gui') 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 pm) void ControlPanel::remove_port(const Path& path) { - bool was_first = false; for (vector::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; } -- cgit v1.2.1