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/client/NodeModel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/client') diff --git a/src/client/NodeModel.cpp b/src/client/NodeModel.cpp index ff9a92cd..73ee5a5a 100644 --- a/src/client/NodeModel.cpp +++ b/src/client/NodeModel.cpp @@ -140,10 +140,8 @@ NodeModel::add_port(SharedPtr pm) assert(pm->path().is_child_of(path())); assert(pm->parent().get() == this); - Ports::iterator existing = find(_ports.begin(), _ports.end(), pm); - // Store should have handled this by merging the two - assert(existing == _ports.end()); + assert(find(_ports.begin(), _ports.end(), pm) == _ports.end()); _ports.push_back(pm); _signal_new_port.emit(pm); -- cgit v1.2.1