summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2012-03-03 02:16:31 +0100
committerTor Lillqvist <tml@iki.fi>2012-03-05 10:26:44 +0200
commit2bdac353ce7e28611b546bcc8a5ea236c891f944 (patch)
tree52909ad985ef619b8efd1d7e1c9ba70c3769037f /oox/source
parentb8550f6a66af279a34731a2d7921fb63550e463b (diff)
remove unused code
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/customshapeproperties.cxx1
-rw-r--r--oox/source/helper/binaryinputstream.cxx8
-rw-r--r--oox/source/helper/modelobjecthelper.cxx13
-rw-r--r--oox/source/helper/propertymap.cxx5
-rw-r--r--oox/source/helper/propertyset.cxx24
5 files changed, 0 insertions, 51 deletions
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx
index ab99e82f016e..29844b8f173d 100644
--- a/oox/source/drawingml/customshapeproperties.cxx
+++ b/oox/source/drawingml/customshapeproperties.cxx
@@ -348,7 +348,6 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi
aPropertyMap[ PROP_Handles ] <<= aHandles;
#ifdef DEBUG
- //aPropertyMap.dump();
OSL_TRACE("==cscode== begin");
aPropertyMap.dumpCode();
OSL_TRACE("==cscode== end");
diff --git a/oox/source/helper/binaryinputstream.cxx b/oox/source/helper/binaryinputstream.cxx
index 21229ae686f6..0a0b51c3d6f2 100644
--- a/oox/source/helper/binaryinputstream.cxx
+++ b/oox/source/helper/binaryinputstream.cxx
@@ -57,14 +57,6 @@ const sal_Int32 INPUTSTREAM_BUFFERSIZE = 0x8000;
// ============================================================================
-OString BinaryInputStream::readNulCharArray()
-{
- OStringBuffer aBuffer;
- for( sal_uInt8 nChar = readuInt8(); !mbEof && (nChar > 0); readValue( nChar ) )
- aBuffer.append( static_cast< sal_Char >( nChar ) );
- return aBuffer.makeStringAndClear();
-}
-
OUString BinaryInputStream::readNulUnicodeArray()
{
OUStringBuffer aBuffer;
diff --git a/oox/source/helper/modelobjecthelper.cxx b/oox/source/helper/modelobjecthelper.cxx
index f0c31f900f75..951f2d0e0683 100644
--- a/oox/source/helper/modelobjecthelper.cxx
+++ b/oox/source/helper/modelobjecthelper.cxx
@@ -67,19 +67,6 @@ bool ObjectContainer::hasObject( const OUString& rObjName ) const
return mxContainer.is() && mxContainer->hasByName( rObjName );
}
-Any ObjectContainer::getObject( const OUString& rObjName ) const
-{
- createContainer();
- if( mxContainer.is() ) try
- {
- return mxContainer->getByName( rObjName );
- }
- catch( Exception& )
- {
- }
- return Any();
-}
-
OUString ObjectContainer::insertObject( const OUString& rObjName, const Any& rObj, bool bInsertByUnusedName )
{
createContainer();
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 6b3a2d4a8769..99ca67a43c92 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -450,11 +450,6 @@ void PropertyMap::dump( Reference< XPropertySet > rXPropSet )
}
}
}
-
-void PropertyMap::dump()
-{
- dump( Reference< XPropertySet >( makePropertySet(), UNO_QUERY ) );
-}
#endif
static void printLevel (int level)
diff --git a/oox/source/helper/propertyset.cxx b/oox/source/helper/propertyset.cxx
index e9733185792c..8585a439d532 100644
--- a/oox/source/helper/propertyset.cxx
+++ b/oox/source/helper/propertyset.cxx
@@ -79,30 +79,6 @@ Any PropertySet::getAnyProperty( sal_Int32 nPropId ) const
return implGetPropertyValue( aValue, PropertyMap::getPropertyName( nPropId ) ) ? aValue : Any();
}
-void PropertySet::getProperties( Sequence< Any >& orValues, const Sequence< OUString >& rPropNames ) const
-{
- if( mxMultiPropSet.is() ) try
- {
- orValues = mxMultiPropSet->getPropertyValues( rPropNames );
- return;
- }
- catch( Exception& )
- {
- OSL_FAIL( "PropertySet::getProperties - cannot get all property values - fallback to single mode" );
- }
-
- if( mxPropSet.is() )
- {
- sal_Int32 nLen = rPropNames.getLength();
- const OUString* pPropName = rPropNames.getConstArray();
- const OUString* pPropNameEnd = pPropName + nLen;
- orValues.realloc( nLen );
- Any* pValue = orValues.getArray();
- for( ; pPropName != pPropNameEnd; ++pPropName, ++pValue )
- implGetPropertyValue( *pValue, *pPropName );
- }
-}
-
// Set properties -------------------------------------------------------------
bool PropertySet::setAnyProperty( sal_Int32 nPropId, const Any& rValue )