summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Database.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-05-30 12:57:47 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-05-30 12:57:47 +0000
commit9fd087fc5e682571d90a8cd508c87df6fd4c4ec5 (patch)
tree45d66c7a94e198742f7644d79b823c0c9feec756 /cpp/src/IceGrid/Database.cpp
parentFix (diff)
downloadice-9fd087fc5e682571d90a8cd508c87df6fd4c4ec5.tar.bz2
ice-9fd087fc5e682571d90a8cd508c87df6fd4c4ec5.tar.xz
ice-9fd087fc5e682571d90a8cd508c87df6fd4c4ec5.zip
Fixes
Diffstat (limited to 'cpp/src/IceGrid/Database.cpp')
-rw-r--r--cpp/src/IceGrid/Database.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp
index 4ae563f7b71..58580a3bd0b 100644
--- a/cpp/src/IceGrid/Database.cpp
+++ b/cpp/src/IceGrid/Database.cpp
@@ -45,26 +45,6 @@ struct AddComponent : std::unary_function<ComponentDescriptorPtr&, void>
const Database::ServerEntryPtr _entry;
};
-struct AddServerName : std::unary_function<InstanceDescriptor&, void>
-{
- AddServerName(set<string>& names) : _names(names)
- {
- }
-
- void
- operator()(const InstanceDescriptor& instance)
- {
- if(!_names.insert(instance.descriptor->name).second)
- {
- DeploymentException ex;
- ex.reason = "invalid descriptor: duplicated server `" + instance.descriptor->name + "'";
- throw ex;
- }
- }
-
- set<string>& _names;
-};
-
struct AddAdapterId : std::unary_function<ComponentDescriptorPtr&, void>
{
AddAdapterId(set<string>& ids) : _ids(ids)