summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Instance.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-05-11 12:33:14 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-05-11 12:33:14 -0230
commit1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5 (patch)
treed95f06135aa5844e5d914e8bb37b96d4b2401dca /cpp/src/Ice/Instance.cpp
parentBug 3885 - do not use localhost as node name in demos (diff)
downloadice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.tar.bz2
ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.tar.xz
ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.zip
Bug 3878 - remove some deprecated features
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r--cpp/src/Ice/Instance.cpp51
1 files changed, 4 insertions, 47 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp
index a8adcd393bc..c404897e748 100644
--- a/cpp/src/Ice/Instance.cpp
+++ b/cpp/src/Ice/Instance.cpp
@@ -43,13 +43,9 @@
#include <stdio.h>
-#ifdef _WIN32
-# include <Ice/EventLoggerI.h>
-#else
+#ifndef _WIN32
# include <Ice/SysLoggerI.h>
-#endif
-#ifndef _WIN32
# include <signal.h>
# include <syslog.h>
# include <pwd.h>
@@ -390,33 +386,6 @@ IceInternal::Instance::flushBatchRequests()
adapterFactory->flushBatchRequests();
}
-void
-IceInternal::Instance::setDefaultContext(const Context& ctx)
-{
- IceUtil::RecMutex::Lock sync(*this);
-
- if(_state == StateDestroyed)
- {
- throw CommunicatorDestroyedException(__FILE__, __LINE__);
- }
-
- _defaultContext = new SharedContext(ctx);
-}
-
-SharedContextPtr
-IceInternal::Instance::getDefaultContext() const
-{
- IceUtil::RecMutex::Lock sync(*this);
-
- if(_state == StateDestroyed)
- {
- throw CommunicatorDestroyedException(__FILE__, __LINE__);
- }
-
- return _defaultContext;
-}
-
-
Identity
IceInternal::Instance::stringToIdentity(const string& s) const
{
@@ -788,7 +757,6 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
_messageSizeMax(0),
_clientACM(0),
_serverACM(0),
- _defaultContext(new SharedContext),
_implicitContext(0)
{
try
@@ -918,19 +886,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
if(!_initData.logger)
{
string logfile = _initData.properties->getProperty("Ice.LogFile");
-#ifdef _WIN32
- //
- // DEPRECATED PROPERTY: Ice.UseEventLog is deprecated.
- //
- if(_initData.properties->getPropertyAsInt("Ice.UseEventLog") > 0)
- {
- if(!logfile.empty())
- {
- throw InitializationException(__FILE__, __LINE__, "Both event and file logger cannot be enabled.");
- }
- _initData.logger = new EventLoggerI(_initData.properties->getProperty("Ice.ProgramName"));
- }
-#else
+#ifndef _WIN32
if(_initData.properties->getPropertyAsInt("Ice.UseSyslog") > 0)
{
if(!logfile.empty())
@@ -939,8 +895,9 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
}
_initData.logger = new SysLoggerI(_initData.properties->getProperty("Ice.ProgramName"));
}
+ else
#endif
- else if(!logfile.empty())
+ if(!logfile.empty())
{
_initData.logger = new LoggerI(_initData.properties->getProperty("Ice.ProgramName"), logfile);
}