summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-10-27 15:55:14 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-10-27 15:55:14 +0000
commit6784d4bde53175419fb12afb1f01f03575a3fdbd (patch)
tree958e08ab1170b6f8010f77606ae63de4fef2cd53 /cpp/src/Ice/Reference.cpp
parentRenamed IceBox library and executable (diff)
downloadice-6784d4bde53175419fb12afb1f01f03575a3fdbd.tar.bz2
ice-6784d4bde53175419fb12afb1f01f03575a3fdbd.tar.xz
ice-6784d4bde53175419fb12afb1f01f03575a3fdbd.zip
Removed ice_default()
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp66
1 files changed, 1 insertions, 65 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 8b22308978a..bf50f0c0bca 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -97,16 +97,6 @@ IceInternal::Reference::changeFacet(const string& newFacet) const
return r;
}
-ReferencePtr
-IceInternal::Reference::changeDefault() const
-{
- ReferencePtr r = _instance->referenceFactory()->copy(this);
- r->_mode = ModeTwoway;
- r->_context = _instance->getDefaultContext();
- r->_facet = "";
- return r;
-}
-
Int
Reference::hash() const
{
@@ -466,8 +456,7 @@ IceInternal::FixedReference::changeCompress(bool) const
{
// TODO: FixedReferences should probably have a _compress flag,
// that gets its default from the fixed connection this reference
- // refers to. This should be changable with changeCompress(), and
- // reset in changeDefault().
+ // refers to. This should be changable with changeCompress().
return FixedReferencePtr(const_cast<FixedReference*>(this));
}
@@ -614,16 +603,6 @@ IceInternal::RoutableReference::getCollocationOptimization() const
}
ReferencePtr
-IceInternal::RoutableReference::changeDefault() const
-{
- RoutableReferencePtr r = RoutableReferencePtr::dynamicCast(Reference::changeDefault());
- r->_secure = false;
- r->_routerInfo = getInstance()->routerManager()->get(getInstance()->referenceFactory()->getDefaultRouter());
- r->_collocationOptimization = getInstance()->defaultsAndOverrides()->defaultCollocationOptimization;
- return r;
-}
-
-ReferencePtr
IceInternal::RoutableReference::changeSecure(bool newSecure) const
{
if(newSecure == _secure)
@@ -770,27 +749,6 @@ IceInternal::DirectReference::getEndpoints() const
}
ReferencePtr
-IceInternal::DirectReference::changeDefault() const
-{
- //
- // Return an indirect reference if a default locator is set.
- //
- LocatorPrx loc = getInstance()->referenceFactory()->getDefaultLocator();
- if(loc)
- {
- LocatorInfoPtr newLocatorInfo = getInstance()->locatorManager()->get(loc);
- return getInstance()->referenceFactory()->create(getIdentity(), getInstance()->getDefaultContext(), "",
- ModeTwoway, false, "", 0, newLocatorInfo,
- getInstance()->defaultsAndOverrides()->
- defaultCollocationOptimization);
- }
- else
- {
- return RoutableReference::changeDefault();
- }
-}
-
-ReferencePtr
IceInternal::DirectReference::changeLocator(const LocatorPrx& newLocator) const
{
if(newLocator)
@@ -1031,28 +989,6 @@ IceInternal::IndirectReference::getEndpoints() const
}
ReferencePtr
-IceInternal::IndirectReference::changeDefault() const
-{
- //
- // Return a direct reference if no default locator is defined.
- //
- LocatorPrx loc = getInstance()->referenceFactory()->getDefaultLocator();
- if(!loc)
- {
- return getInstance()->referenceFactory()->create(getIdentity(), getInstance()->getDefaultContext(), "",
- ModeTwoway, false, vector<EndpointIPtr>(), getRouterInfo(),
- getInstance()->defaultsAndOverrides()->
- defaultCollocationOptimization);
- }
- else
- {
- IndirectReferencePtr r = IndirectReferencePtr::dynamicCast(RoutableReference::changeDefault());
- r->_locatorInfo = getInstance()->locatorManager()->get(loc);
- return r;
- }
-}
-
-ReferencePtr
IceInternal::IndirectReference::changeLocator(const LocatorPrx& newLocator) const
{
//