summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-12 13:35:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-12 13:35:38 +0100
commit0b876ce56cbd63fbc44e5ba13433d0051fbc1108 (patch)
tree0097f6154f9a8a923a6b93f28513de6bd547c8b1 /sc
parentac334eeac573fcc38a4ba6afa34e967f13154030 (diff)
remove unused local static functions
Change-Id: I2b5e16165ac2de4753d9687a2bfc146d11a2bcd9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpobject.cxx29
-rw-r--r--sc/source/core/data/drwlayer.cxx6
-rw-r--r--sc/source/filter/excel/excimp8.cxx3
3 files changed, 0 insertions, 38 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 95b030735408..81888fdfe6dc 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1870,20 +1870,6 @@ void ScDPObject::ToggleDetails(const DataPilotTableHeaderData& rElemDesc, ScDPOb
}
}
-static long lcl_FindName( const rtl::OUString& rString, const uno::Reference<container::XNameAccess>& xCollection )
-{
- if ( xCollection.is() )
- {
- uno::Sequence<rtl::OUString> aSeq = xCollection->getElementNames();
- long nCount = aSeq.getLength();
- const rtl::OUString* pArr = aSeq.getConstArray();
- for (long nPos=0; nPos<nCount; nPos++)
- if ( pArr[nPos] == rString )
- return nPos;
- }
- return -1; // not found
-}
-
static sal_uInt16 lcl_FirstSubTotal( const uno::Reference<beans::XPropertySet>& xDimProp ) // PIVOT_FUNC mask
{
uno::Reference<sheet::XHierarchiesSupplier> xDimSupp( xDimProp, uno::UNO_QUERY );
@@ -1933,21 +1919,6 @@ static sal_uInt16 lcl_FirstSubTotal( const uno::Reference<beans::XPropertySet>&
return 0;
}
-static sal_uInt16 lcl_CountBits( sal_uInt16 nBits )
-{
- if (!nBits) return 0;
-
- sal_uInt16 nCount = 0;
- sal_uInt16 nMask = 1;
- for (sal_uInt16 i=0; i<16; i++)
- {
- if ( nBits & nMask )
- ++nCount;
- nMask <<= 1;
- }
- return nCount;
-}
-
namespace {
class FindByColumn : public std::unary_function<PivotField, bool>
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index e6c3ad45df53..61db8dbce155 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -186,12 +186,6 @@ inline void ReverseTwipsToMM( long& nVal )
nVal = HmmToTwips (nVal);
}
-static void lcl_ReverseTwipsToMM( Point& rPoint )
-{
- ReverseTwipsToMM( rPoint.X() );
- ReverseTwipsToMM( rPoint.Y() );
-}
-
static void lcl_ReverseTwipsToMM( Rectangle& rRect )
{
ReverseTwipsToMM( rRect.Left() );
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 89f0074f865d..50a7870822e3 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -199,9 +199,6 @@ public:
}
};
-// defined in docfunc.cxx ( really this needs a new name )
-static script::ModuleInfo lcl_InitModuleInfo( SfxObjectShell& rDocSh, String& sModule );
-
ImportExcel8::ImportExcel8( XclImpRootData& rImpData, SvStream& rStrm ) :
ImportExcel( rImpData, rStrm )
{