summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-13 16:16:34 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-02-13 16:16:34 +0000
commit0536df54d531e2d5e45dfea52c8377701a6a1fda (patch)
tree436e4a522cd2def2efd11ec081f362ace1536f13 /oox/source
parent60397e849731db0dd9492975e134dc0f905b6390 (diff)
Remove unused code
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/chart/objectformatter.cxx11
-rw-r--r--oox/source/dump/dumperbase.cxx6
-rw-r--r--oox/source/ole/vbahelper.cxx14
-rw-r--r--oox/source/ole/vbaproject.cxx10
-rw-r--r--oox/source/xls/addressconverter.cxx8
-rw-r--r--oox/source/xls/stylesbuffer.cxx11
6 files changed, 0 insertions, 60 deletions
diff --git a/oox/source/drawingml/chart/objectformatter.cxx b/oox/source/drawingml/chart/objectformatter.cxx
index 7aca5b8f958c..076aa41a7e78 100644
--- a/oox/source/drawingml/chart/objectformatter.cxx
+++ b/oox/source/drawingml/chart/objectformatter.cxx
@@ -1161,23 +1161,12 @@ void ObjectFormatter::convertNumberFormat( PropertySet& rPropSet, const NumberFo
}
}
-void ObjectFormatter::convertAutomaticLine( PropertySet& rPropSet, ObjectType eObjType, sal_Int32 nSeriesIdx )
-{
- if( ObjectTypeFormatter* pFormat = mxData->getTypeFormatter( eObjType ) )
- pFormat->convertAutomaticLine( rPropSet, nSeriesIdx );
-}
-
void ObjectFormatter::convertAutomaticFill( PropertySet& rPropSet, ObjectType eObjType, sal_Int32 nSeriesIdx )
{
if( ObjectTypeFormatter* pFormat = mxData->getTypeFormatter( eObjType ) )
pFormat->convertAutomaticFill( rPropSet, nSeriesIdx );
}
-/*static*/ bool ObjectFormatter::isAutomaticLine( const ModelRef< Shape >& rxShapeProp )
-{
- return !rxShapeProp || !rxShapeProp->getLineProperties().maLineFill.moFillType.has();
-}
-
/*static*/ bool ObjectFormatter::isAutomaticFill( const ModelRef< Shape >& rxShapeProp )
{
return !rxShapeProp || !rxShapeProp->getFillProperties().moFillType.has();
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx
index eacbba362d71..f109168e7a09 100644
--- a/oox/source/dump/dumperbase.cxx
+++ b/oox/source/dump/dumperbase.cxx
@@ -2384,12 +2384,6 @@ void OutputObjectBase::writeArrayItem( const String& rName, const sal_uInt8* pnD
mxOut->writeArray( pnData, nSize, cSep );
}
-void OutputObjectBase::writeBoolItem( const String& rName, bool bData )
-{
- ItemGuard aItem( mxOut, rName );
- mxOut->writeBool( bData );
-}
-
double OutputObjectBase::writeRkItem( const String& rName, sal_Int32 nRk )
{
MultiItemsGuard aMultiGuard( mxOut );
diff --git a/oox/source/ole/vbahelper.cxx b/oox/source/ole/vbahelper.cxx
index e78ec21ff313..a545c578c9e0 100644
--- a/oox/source/ole/vbahelper.cxx
+++ b/oox/source/ole/vbahelper.cxx
@@ -42,20 +42,6 @@ using ::rtl::OUStringBuffer;
// ============================================================================
-/*static*/ OUString VbaHelper::getBasicScriptUrl(
- const OUString& rLibraryName, const OUString& rModuleName, const OUString& rMacroName )
-{
- OSL_ENSURE( !rLibraryName.isEmpty(), "VbaHelper::getBasicScriptUrl - library name is empty" );
- OSL_ENSURE( !rModuleName.isEmpty(), "VbaHelper::getBasicScriptUrl - module name is empty" );
- OSL_ENSURE( !rMacroName.isEmpty(), "VbaHelper::getBasicScriptUrl - macro name is empty" );
- const sal_Unicode cDot = '.';
- return OUStringBuffer().
- appendAscii( RTL_CONSTASCII_STRINGPARAM( "vnd.sun.star.script:" ) ).
- append( rLibraryName ).append( cDot ).append( rModuleName ).append( cDot ).append( rMacroName ).
- appendAscii( RTL_CONSTASCII_STRINGPARAM( "?language=Basic&location=document" ) ).
- makeStringAndClear();
-}
-
/*static*/ bool VbaHelper::readDirRecord( sal_uInt16& rnRecId, StreamDataSequence& rRecData, BinaryInputStream& rInStrm )
{
// read the record header
diff --git a/oox/source/ole/vbaproject.cxx b/oox/source/ole/vbaproject.cxx
index 4237d2a21cca..19defae81a9a 100644
--- a/oox/source/ole/vbaproject.cxx
+++ b/oox/source/ole/vbaproject.cxx
@@ -212,21 +212,11 @@ bool VbaProject::hasModules() const
return mxBasicLib.is() && mxBasicLib->hasElements();
}
-bool VbaProject::hasModule( const OUString& rModuleName ) const
-{
- return mxBasicLib.is() && mxBasicLib->hasByName( rModuleName );
-}
-
bool VbaProject::hasDialogs() const
{
return mxDialogLib.is() && mxDialogLib->hasElements();
}
-bool VbaProject::hasDialog( const OUString& rDialogName ) const
-{
- return mxDialogLib.is() && mxDialogLib->hasByName( rDialogName );
-}
-
// protected ------------------------------------------------------------------
void VbaProject::addDummyModule( const OUString& rName, sal_Int32 nType )
diff --git a/oox/source/xls/addressconverter.cxx b/oox/source/xls/addressconverter.cxx
index 9fd9c387d49a..3f4567803870 100644
--- a/oox/source/xls/addressconverter.cxx
+++ b/oox/source/xls/addressconverter.cxx
@@ -687,14 +687,6 @@ bool AddressConverter::convertToCellRange( CellRangeAddress& orRange,
// ----------------------------------------------------------------------------
-bool AddressConverter::checkCellRangeList( const ApiCellRangeList& rRanges, bool bAllowOverflow, bool bTrackOverflow )
-{
- for( ApiCellRangeList::const_iterator aIt = rRanges.begin(), aEnd = rRanges.end(); aIt != aEnd; ++aIt )
- if( !checkCellRange( *aIt, bAllowOverflow, bTrackOverflow ) )
- return false;
- return true;
-}
-
void AddressConverter::validateCellRangeList( ApiCellRangeList& orRanges, bool bTrackOverflow )
{
for( size_t nIndex = orRanges.size(); nIndex > 0; --nIndex )
diff --git a/oox/source/xls/stylesbuffer.cxx b/oox/source/xls/stylesbuffer.cxx
index a09c4eb0bd51..53125499db08 100644
--- a/oox/source/xls/stylesbuffer.cxx
+++ b/oox/source/xls/stylesbuffer.cxx
@@ -3329,11 +3329,6 @@ XfRef StylesBuffer::getStyleXf( sal_Int32 nXfId ) const
return maStyleXfs.get( nXfId );
}
-DxfRef StylesBuffer::getDxf( sal_Int32 nDxfId ) const
-{
- return maDxfs.get( nDxfId );
-}
-
FontRef StylesBuffer::getFontFromCellXf( sal_Int32 nXfId ) const
{
FontRef xFont;
@@ -3470,12 +3465,6 @@ void StylesBuffer::writeCellXfToPropertyMap( PropertyMap& rPropMap, sal_Int32 nX
pXf->writeToPropertyMap( rPropMap );
}
-void StylesBuffer::writeStyleXfToPropertyMap( PropertyMap& rPropMap, sal_Int32 nXfId ) const
-{
- if( Xf* pXf = maStyleXfs.get( nXfId ).get() )
- pXf->writeToPropertyMap( rPropMap );
-}
-
void StylesBuffer::writeCellXfToPropertySet( PropertySet& rPropSet, sal_Int32 nXfId ) const
{
if( Xf* pXf = maCellXfs.get( nXfId ).get() )