summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Server.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-08-22 00:06:02 +0000
committerMark Spruiell <mes@zeroc.com>2006-08-22 00:06:02 +0000
commita21245de493fd741e3a561adfdb1ca951c30145c (patch)
tree566960b5671ec08fb74b15e45a0084c7e24b7ec9 /cpp/src/IcePatch2/Server.cpp
parentminor reorg (diff)
downloadice-a21245de493fd741e3a561adfdb1ca951c30145c.tar.bz2
ice-a21245de493fd741e3a561adfdb1ca951c30145c.tar.xz
ice-a21245de493fd741e3a561adfdb1ca951c30145c.zip
bug 1156: removing deprecated Identity properties
Diffstat (limited to 'cpp/src/IcePatch2/Server.cpp')
-rw-r--r--cpp/src/IcePatch2/Server.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/cpp/src/IcePatch2/Server.cpp b/cpp/src/IcePatch2/Server.cpp
index 7c604c1a392..76030e75f64 100644
--- a/cpp/src/IcePatch2/Server.cpp
+++ b/cpp/src/IcePatch2/Server.cpp
@@ -159,24 +159,12 @@ IcePatch2::PatcherService::start(int argc, char* argv[])
const string instanceNameProperty = "IcePatch2.InstanceName";
string instanceName = properties->getPropertyWithDefault(instanceNameProperty, "IcePatch2");
- const string idProperty = "IcePatch2.Identity";
- string idStr = properties->getProperty(idProperty);
- if(idStr.empty())
- {
- idStr = instanceName + "/server";
- }
- Identity id = communicator()->stringToIdentity(idStr);
+ Identity id = communicator()->stringToIdentity(instanceName + "/server");
adapter->add(new FileServerI(dataDir, infoSeq), id);
if(adminAdapter)
{
- const string adminIdProperty = "IcePatch2.AdminIdentity";
- string adminIdStr = properties->getProperty(adminIdProperty);
- if(adminIdStr.empty())
- {
- adminIdStr = instanceName + "/admin";
- }
- Identity adminId = communicator()->stringToIdentity(adminIdStr);
+ Identity adminId = communicator()->stringToIdentity(instanceName + "/admin");
adminAdapter->add(new AdminI(communicator()), adminId);
}
@@ -195,7 +183,6 @@ IcePatch2::PatcherService::stop()
return true;
}
-
void
IcePatch2::PatcherService::usage(const string& appName)
{