summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-17 17:25:58 +0100
committerKohei Yoshida <kyoshida@novell.com>2011-01-18 11:44:43 -0500
commitdb95c38b3cd3efb924a3be2f7fe1027dbf75401f (patch)
tree7f414156b0fe3e305911dc890d0c771794a4f0be /sc/source/core/data
parent1190d330bef57b04545427ac7b119cf416ed4fba (diff)
Remove dead code: "//static" and "//virtual"
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/dbdocutl.cxx1
-rw-r--r--sc/source/core/data/docpool.cxx2
-rw-r--r--sc/source/core/data/documen2.cxx1
-rw-r--r--sc/source/core/data/documen3.cxx1
-rw-r--r--sc/source/core/data/dpobject.cxx5
-rw-r--r--sc/source/core/data/dpoutput.cxx1
-rw-r--r--sc/source/core/data/dptabres.cxx1
-rw-r--r--sc/source/core/data/drwlayer.cxx13
-rw-r--r--sc/source/core/data/global.cxx5
-rw-r--r--sc/source/core/data/globalx.cxx2
-rw-r--r--sc/source/core/data/sheetevents.cxx3
11 files changed, 6 insertions, 29 deletions
diff --git a/sc/source/core/data/dbdocutl.cxx b/sc/source/core/data/dbdocutl.cxx
index 2bd9b6755776..7e0f8b7ebb82 100644
--- a/sc/source/core/data/dbdocutl.cxx
+++ b/sc/source/core/data/dbdocutl.cxx
@@ -56,7 +56,6 @@ ScDatabaseDocUtil::StrData::StrData() :
// ----------------------------------------------------------------------------
-// static
void ScDatabaseDocUtil::PutData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab,
const uno::Reference<sdbc::XRow>& xRow, long nRowPos,
long nType, BOOL bCurrency, StrData* pStrData )
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index 3ef2101755db..9e862ffe6d17 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -630,7 +630,7 @@ void ScDocumentPool::Remove( const SfxPoolItem& rItem )
SfxItemPool::Remove( rItem );
}
-void ScDocumentPool::CheckRef( const SfxPoolItem& rItem ) // static
+void ScDocumentPool::CheckRef( const SfxPoolItem& rItem )
{
ULONG nRef = rItem.GetRefCount();
if ( nRef >= (ULONG) SC_MAX_POOLREF && nRef <= (ULONG) SFX_ITEMS_OLD_MAXREF )
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 83a1f9a2bf3e..96c9544ff8ba 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -1219,7 +1219,6 @@ void ScDocument::DisposeFieldEditEngine(ScFieldEditEngine*& rpEditEngine)
// ----------------------------------------------------------------------------
-// static
ScRecursionHelper* ScDocument::CreateRecursionHelperInstance()
{
return new ScRecursionHelper;
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index ca3d5c56c4dd..d6a5350be18e 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1002,7 +1002,6 @@ void ScDocument::GetAutoFormatData(SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
}
}
-// static
void ScDocument::GetSearchAndReplaceStart( const SvxSearchItem& rSearchItem,
SCCOL& rCol, SCROW& rRow )
{
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 2c07c3aec250..942836760f65 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -2134,7 +2134,6 @@ bool hasFieldColumn(const vector<PivotField>* pRefFields, SCCOL nCol)
}
-// static
void ScDPObject::ConvertOrientation(
ScDPSaveData& rSaveData, const vector<PivotField>& rFields, USHORT nOrient,
const Reference<XDimensionsSupplier>& xSource,
@@ -2240,7 +2239,6 @@ void ScDPObject::ConvertOrientation(
}
}
-// static
bool ScDPObject::IsOrientationAllowed( USHORT nOrient, sal_Int32 nDimFlags )
{
bool bAllowed = true;
@@ -2268,7 +2266,6 @@ bool ScDPObject::IsOrientationAllowed( USHORT nOrient, sal_Int32 nDimFlags )
// -----------------------------------------------------------------------
-// static
BOOL ScDPObject::HasRegisteredSources()
{
BOOL bFound = FALSE;
@@ -2286,7 +2283,6 @@ BOOL ScDPObject::HasRegisteredSources()
return bFound;
}
-// static
uno::Sequence<rtl::OUString> ScDPObject::GetRegisteredSources()
{
uno::Sequence<rtl::OUString> aSeq(0);
@@ -2332,7 +2328,6 @@ uno::Sequence<rtl::OUString> ScDPObject::GetRegisteredSources()
// use getContext from addincol.cxx
uno::Reference<uno::XComponentContext> getContext(uno::Reference<lang::XMultiServiceFactory> xMSF);
-// static
uno::Reference<sheet::XDimensionsSupplier> ScDPObject::CreateSource( const ScDPServiceDesc& rDesc )
{
rtl::OUString aImplName = rDesc.aServiceName;
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 99f31fd3610e..cb9a918098f7 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -1637,7 +1637,6 @@ String lcl_GetDataFieldName( const String& rSourceName, sheet::GeneralFunction e
return aRet;
}
-// static
void ScDPOutput::GetDataDimensionNames( String& rSourceName, String& rGivenName,
const uno::Reference<uno::XInterface>& xDim )
{
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index d8b48e9591ff..c3cafc868430 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -3315,7 +3315,6 @@ ScDPDataMember* ScDPResultDimension::GetRowReferenceMember( const ScDPRelativePo
return pColMember;
}
-// static
ScDPDataMember* ScDPResultDimension::GetColReferenceMember( const ScDPRelativePos* pRelativePos, const String* pName,
long nRefDimPos, const ScDPRunningTotalState& rRunning )
{
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 8ac38656f246..f8e0f69c56c4 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -1649,7 +1649,6 @@ void ScDrawLayer::MirrorRTL( SdrObject* pObj )
}
}
-// static
void ScDrawLayer::MirrorRectRTL( Rectangle& rRect )
{
// mirror and swap left/right
@@ -1699,7 +1698,6 @@ Rectangle ScDrawLayer::GetCellRect( ScDocument& rDoc, const ScAddress& rPos, boo
return aCellRect;
}
-// static
String ScDrawLayer::GetVisibleName( SdrObject* pObj )
{
String aName = pObj->GetName();
@@ -1826,7 +1824,7 @@ ScAnchorType ScDrawLayer::GetAnchor( const SdrObject* pObj )
return ( aAnchor.Y() != 0 ) ? SCA_PAGE : SCA_CELL;
}
-ScDrawObjData* ScDrawLayer::GetObjData( SdrObject* pObj, BOOL bCreate ) // static
+ScDrawObjData* ScDrawLayer::GetObjData( SdrObject* pObj, BOOL bCreate )
{
USHORT nCount = pObj ? pObj->GetUserDataCount() : 0;
for( USHORT i = 0; i < nCount; i++ )
@@ -1845,7 +1843,7 @@ ScDrawObjData* ScDrawLayer::GetObjData( SdrObject* pObj, BOOL bCreate ) // s
return 0;
}
-ScDrawObjData* ScDrawLayer::GetObjDataTab( SdrObject* pObj, SCTAB nTab ) // static
+ScDrawObjData* ScDrawLayer::GetObjDataTab( SdrObject* pObj, SCTAB nTab )
{
ScDrawObjData* pData = GetObjData( pObj );
if ( pData )
@@ -1870,7 +1868,7 @@ ScDrawObjData* ScDrawLayer::GetNoteCaptionData( SdrObject* pObj, SCTAB nTab )
return (pData && pData->mbNote) ? pData : 0;
}
-ScIMapInfo* ScDrawLayer::GetIMapInfo( SdrObject* pObj ) // static
+ScIMapInfo* ScDrawLayer::GetIMapInfo( SdrObject* pObj )
{
USHORT nCount = pObj->GetUserDataCount();
for( USHORT i = 0; i < nCount; i++ )
@@ -1883,7 +1881,6 @@ ScIMapInfo* ScDrawLayer::GetIMapInfo( SdrObject* pObj ) // static
return NULL;
}
-// static:
IMapObject* ScDrawLayer::GetHitIMapObject( SdrObject* pObj,
const Point& rWinPoint, const Window& rCmpWnd )
{
@@ -1949,7 +1946,7 @@ IMapObject* ScDrawLayer::GetHitIMapObject( SdrObject* pObj,
return pIMapObj;
}
-ScMacroInfo* ScDrawLayer::GetMacroInfo( SdrObject* pObj, BOOL bCreate ) // static
+ScMacroInfo* ScDrawLayer::GetMacroInfo( SdrObject* pObj, BOOL bCreate )
{
USHORT nCount = pObj->GetUserDataCount();
for( USHORT i = 0; i < nCount; i++ )
@@ -1968,7 +1965,7 @@ ScMacroInfo* ScDrawLayer::GetMacroInfo( SdrObject* pObj, BOOL bCreate )
return 0;
}
-void ScDrawLayer::SetGlobalDrawPersist(SfxObjectShell* pPersist) // static
+void ScDrawLayer::SetGlobalDrawPersist(SfxObjectShell* pPersist)
{
DBG_ASSERT(!pGlobalDrawPersist,"SetGlobalDrawPersist mehrfach");
pGlobalDrawPersist = pPersist;
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 352e78dd3ae3..11e6b38aa05a 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -220,7 +220,6 @@ ULONG ScGlobal::GetStandardFormat( double fNumber, SvNumberFormatter& rFormatter
}
-// static
SvNumberFormatter* ScGlobal::GetEnglishFormatter()
{
if ( !pEnglishFormatter )
@@ -685,7 +684,6 @@ void ScGlobal::Clear()
//------------------------------------------------------------------------
-// static
CharSet ScGlobal::GetCharsetValue( const String& rCharSet )
{
// new TextEncoding values
@@ -711,7 +709,6 @@ CharSet ScGlobal::GetCharsetValue( const String& rCharSet )
//------------------------------------------------------------------------
-// static
String ScGlobal::GetCharsetString( CharSet eVal )
{
const sal_Char* pChar;
@@ -770,7 +767,6 @@ void ScGlobal::ResetFunctionList()
//------------------------------------------------------------------------
-// static
ScUnitConverter* ScGlobal::GetUnitConverter()
{
if ( !pUnitConverter )
@@ -782,7 +778,6 @@ ScUnitConverter* ScGlobal::GetUnitConverter()
//------------------------------------------------------------------------
-// static
const sal_Unicode* ScGlobal::UnicodeStrChr( const sal_Unicode* pStr,
sal_Unicode c )
{
diff --git a/sc/source/core/data/globalx.cxx b/sc/source/core/data/globalx.cxx
index 43b14fab4687..8d043ac7a1e8 100644
--- a/sc/source/core/data/globalx.cxx
+++ b/sc/source/core/data/globalx.cxx
@@ -56,7 +56,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-// static
void ScGlobal::InitAddIns()
{
// multi paths separated by semicolons
@@ -135,7 +134,6 @@ void ScGlobal::InitAddIns()
}
-// static
String ScGlobal::GetOrdinalSuffix( sal_Int32 nNumber)
{
if (!xOrdinalSuffix.is())
diff --git a/sc/source/core/data/sheetevents.cxx b/sc/source/core/data/sheetevents.cxx
index d1df2bb04df6..da935464cffb 100644
--- a/sc/source/core/data/sheetevents.cxx
+++ b/sc/source/core/data/sheetevents.cxx
@@ -40,7 +40,6 @@
// -----------------------------------------------------------------------
-// static
rtl::OUString ScSheetEvents::GetEventName(sal_Int32 nEvent)
{
if (nEvent<0 || nEvent>=SC_SHEETEVENT_COUNT)
@@ -62,7 +61,6 @@ rtl::OUString ScSheetEvents::GetEventName(sal_Int32 nEvent)
return rtl::OUString::createFromAscii(aEventNames[nEvent]);
}
-// static
sal_Int32 ScSheetEvents::GetVbaSheetEventId(sal_Int32 nEvent)
{
using namespace ::com::sun::star::script::vba::VBAEventId;
@@ -85,7 +83,6 @@ sal_Int32 ScSheetEvents::GetVbaSheetEventId(sal_Int32 nEvent)
return nVbaEventIds[nEvent];
}
-// static
sal_Int32 ScSheetEvents::GetVbaDocumentEventId(sal_Int32 nEvent)
{
using namespace ::com::sun::star::script::vba::VBAEventId;