summaryrefslogtreecommitdiff
path: root/sd/source/core/shapelist.cxx
diff options
context:
space:
mode:
authorChristian Lippka <christian.lippka@oracle.com>2010-09-21 15:27:38 +0200
committerChristian Lippka <christian.lippka@oracle.com>2010-09-21 15:27:38 +0200
commitd1684121929ba6881eb37ac0b45b1eead14ab427 (patch)
tree08e5a03ceabb4130c29461da376bc8c5be03997d /sd/source/core/shapelist.cxx
parent575cf859236ea36fa81eb4e343eb03e7a0c05092 (diff)
impress201: #i112507# remove unused code
Diffstat (limited to 'sd/source/core/shapelist.cxx')
-rwxr-xr-xsd/source/core/shapelist.cxx38
1 files changed, 0 insertions, 38 deletions
diff --git a/sd/source/core/shapelist.cxx b/sd/source/core/shapelist.cxx
index bf5b98471b53..4bb14b642f79 100755
--- a/sd/source/core/shapelist.cxx
+++ b/sd/source/core/shapelist.cxx
@@ -84,44 +84,6 @@ SdrObject* ShapeList::removeShape( SdrObject& rObject )
return 0;
}
-void ShapeList::replaceShape( SdrObject& rOldObject, SdrObject& rNewObject )
-{
- if( &rOldObject == &rNewObject )
- return;
-
- ListImpl::iterator aIter( std::find( maShapeList.begin(), maShapeList.end(), &rNewObject ) );
- if( aIter != maShapeList.end() )
- {
- bool bIterErased = aIter == maIter;
- (*aIter)->RemoveObjectUser(*this);
- aIter = maShapeList.erase( aIter );
-
- if( bIterErased )
- maIter = aIter;
- }
-
- aIter = std::find( maShapeList.begin(), maShapeList.end(), &rOldObject );
- if( aIter != maShapeList.end() )
- {
- bool bIterErased = aIter == maIter;
-
- ListImpl::iterator iNew( maShapeList.insert( aIter, &rNewObject ) );
-
- (*aIter)->RemoveObjectUser(*this);
- aIter = maShapeList.erase( aIter );
-
- rNewObject.AddObjectUser( *this );
-
- if( bIterErased )
- maIter = iNew;
- }
- else
- {
- DBG_ERROR("sd::ShapeList::replaceShape(), given shape not part of list!");
- addShape( rNewObject );
- }
-}
-
/** removes all shapes from this list
NOTE: iterators will become invalid */
void ShapeList::clear()