From 14401d11e598651e7caf39cce884362e58ef5941 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Aug 2008 23:00:34 +0000 Subject: Copy/paste of connections. git-svn-id: http://svn.drobilla.net/lad/ingen@1426 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PatchModel.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/libs/client/PatchModel.cpp') diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp index 69365719..af20c9f8 100644 --- a/src/libs/client/PatchModel.cpp +++ b/src/libs/client/PatchModel.cpp @@ -186,30 +186,5 @@ PatchModel::polyphonic() const } -unsigned -PatchModel::child_name_offset(ClientStore& store, - SharedPtr parent, - const string& base_name) -{ - assert(Path::is_valid_name(base_name)); - unsigned offset = 0; - - while (true) { - std::stringstream ss; - ss << base_name; - if (offset > 0) - ss << "_" << offset; - if (store.find(parent->path().base() + ss.str()) == store.end()) - break; - else if (offset == 0) - offset = 2; - else - ++offset; - } - - return offset; -} - - } // namespace Client } // namespace Ingen -- cgit v1.2.1