summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-17 23:00:34 +0000
committerDavid Robillard <d@drobilla.net>2008-08-17 23:00:34 +0000
commit14401d11e598651e7caf39cce884362e58ef5941 (patch)
tree05b2c57b1f55640149ba850a2f9f1fda175dccb8 /src/libs/client/PatchModel.cpp
parent9938fac4b15f8939c9056c16a3a7662575af52e1 (diff)
downloadingen-14401d11e598651e7caf39cce884362e58ef5941.tar.gz
ingen-14401d11e598651e7caf39cce884362e58ef5941.tar.bz2
ingen-14401d11e598651e7caf39cce884362e58ef5941.zip
Copy/paste of connections.
git-svn-id: http://svn.drobilla.net/lad/ingen@1426 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchModel.cpp')
-rw-r--r--src/libs/client/PatchModel.cpp25
1 files changed, 0 insertions, 25 deletions
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<PatchModel> 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