[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 12 05:36:27 PDT 2012
sc/source/core/data/dpobject.cxx | 29 -----------------------------
sc/source/core/data/drwlayer.cxx | 6 ------
sc/source/filter/excel/excimp8.cxx | 3 ---
3 files changed, 38 deletions(-)
New commits:
commit 0b876ce56cbd63fbc44e5ba13433d0051fbc1108
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 12 13:35:38 2012 +0100
remove unused local static functions
Change-Id: I2b5e16165ac2de4753d9687a2bfc146d11a2bcd9
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 95b0307..81888fd 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 e6c3ad4..61db8db 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 89f0074..50a7870 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 )
{
More information about the Libreoffice-commits
mailing list