summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchModel.cpp
diff options
context:
space:
mode:
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