summaryrefslogtreecommitdiff
path: root/sot/source/base
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-13 21:23:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-14 10:11:32 +0000
commitc17f51c74ce8ef4fc4827766ce9c1c338a3e54c4 (patch)
treec5c5e491f2d8abd911c3c421e2bf379bdde2c8d3 /sot/source/base
parenta94b6ec2d57cab51d79329ea62d908f3b3713505 (diff)
The additional methods of SO2_*_REF over SV_*_REF are now unused
so they can now be replaced by SV_*_REF now Change-Id: I2207d6582cab5f41851064f3d0c773e9421c0078
Diffstat (limited to 'sot/source/base')
-rw-r--r--sot/source/base/factory.cxx29
-rw-r--r--sot/source/base/object.cxx13
2 files changed, 0 insertions, 42 deletions
diff --git a/sot/source/base/factory.cxx b/sot/source/base/factory.cxx
index 783568308912..28c285027cd7 100644
--- a/sot/source/base/factory.cxx
+++ b/sot/source/base/factory.cxx
@@ -195,35 +195,6 @@ void * SotFactory::CreateInstance( SotObject ** ppObj ) const
return pCreateFunc( ppObj );
}
-//=========================================================================
-void * SotFactory::CastAndAddRef
-(
- SotObject * pObj /* Das Objekt von dem der Typ gepr"uft wird. */
-) const
-/* [Beschreibung]
-
- Ist eine Optimierung, damit die Ref-Klassen k"urzer implementiert
- werden k"onnen. pObj wird auf den Typ der Factory gecastet.
- In c++ (wenn es immer erlaubt w"are) w"urde der void * wie im
- Beispiel gebildet.
- Factory der Klasse SvPersist.
- void * p = (void *)(SvPersist *)pObj;
-
- [R"uckgabewert]
-
- void *, NULL, pObj war NULL oder das Objekt war nicht vom Typ
- der Factory.
- Ansonsten wird pObj zuerst auf den Typ der Factory
- gecastet und dann auf void *.
-
- [Querverweise]
-
- <SotObject::CastAndAddRef>
-*/
-{
- return pObj ? pObj->CastAndAddRef( this ) : NULL;
-}
-
/*************************************************************************
|* SotFactory::Is()
|*
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index 3bf6d92bda14..b69d2602d356 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -72,19 +72,6 @@ IUnknown * SotObject::GetInterface( const SvGlobalName & )
return NULL;
}
-/*************************************************************************
-|* SotObject::CastAndAddRef()
-|*
-|* Beschreibung
-*************************************************************************/
-void* SotObject::CastAndAddRef( const SotFactory * pFact )
-{
- void * pCast = Cast( pFact );
- if( pCast )
- AddRef();
- return pCast;
-}
-
//=========================================================================
void SotObject::OwnerLock
(