summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-01 22:44:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-02 09:58:53 +0000
commit40fbc430fdd9366cd0047724f831929378cdf679 (patch)
tree011f20a5a4daf60ceb3e7a4459ca53388009d187 /comphelper/source
parent057d3225203543f6d0f2d658d884ed11241e88ee (diff)
callcatcher: some unused code
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx24
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx15
2 files changed, 0 insertions, 39 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index 9f84b7afa053..8842205a42dd 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -711,30 +711,6 @@ sal_Bool EmbeddedObjectContainer::TryToCopyGraphReplacement( EmbeddedObjectConta
return bResult;
}
-sal_Bool EmbeddedObjectContainer::CopyEmbeddedObject( EmbeddedObjectContainer& rSrc, const uno::Reference < embed::XEmbeddedObject >& xObj, ::rtl::OUString& rName )
-{
- RTL_LOGFILE_CONTEXT( aLog, "comphelper (mv76033) comphelper::EmbeddedObjectContainer::CopyEmbeddedObject" );
-
- OSL_FAIL( "This method is depricated! Use EmbeddedObjectContainer::CopyAndGetEmbeddedObject() to copy object!\n" );
-
- // get the object name before(!) it is assigned to a new storage
- ::rtl::OUString aOrigName;
- uno::Reference < embed::XEmbedPersist > xPersist( xObj, uno::UNO_QUERY );
- if ( xPersist.is() )
- aOrigName = xPersist->getEntryName();
-
- if ( !rName.getLength() )
- rName = CreateUniqueObjectName();
-
- if ( StoreEmbeddedObject( xObj, rName, sal_True ) )
- {
- TryToCopyGraphReplacement( rSrc, aOrigName, rName );
- return sal_True;
- }
-
- return sal_False;
-}
-
uno::Reference < embed::XEmbeddedObject > EmbeddedObjectContainer::CopyAndGetEmbeddedObject( EmbeddedObjectContainer& rSrc, const uno::Reference < embed::XEmbeddedObject >& xObj, ::rtl::OUString& rName )
{
RTL_LOGFILE_CONTEXT( aLog, "comphelper (mv76033) comphelper::EmbeddedObjectContainer::CopyAndGetEmbeddedObject" );
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx
index c81e761392b9..dfa66e839bd9 100644
--- a/comphelper/source/misc/mimeconfighelper.cxx
+++ b/comphelper/source/misc/mimeconfighelper.cxx
@@ -925,19 +925,4 @@ uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassID( sal_uInt3
return aResult;
}
-//-------------------------------------------------------------------------
-uno::Sequence<sal_Int8> MimeConfigurationHelper::GetSequenceClassIDFromObjectName(const ::rtl::OUString& _sObjectName)
-{
- uno::Sequence<sal_Int8> aClassId;
- uno::Reference< container::XNameAccess > xObjectNames = GetConfigurationByPath(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.Embedding/ObjectNames")));
- uno::Reference< container::XNameAccess > xProps;
- if ( xObjectNames.is() && (xObjectNames->getByName(_sObjectName) >>= xProps) && xProps.is() )
- {
- ::rtl::OUString sValue;
- xProps->getByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ClassID"))) >>= sValue;
- aClassId = GetSequenceClassIDRepresentation(sValue);
- }
- return aClassId;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */