From e3ebacf3fdbafeafe02e2976c25c9299b1fd6bbd Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 7 Mar 2012 15:40:34 -0500 Subject: These functions are no longer used. --- sc/source/core/data/dpgroup.cxx | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'sc') diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx index 31db8c7bef44..2e986ce8f572 100644 --- a/sc/source/core/data/dpgroup.cxx +++ b/sc/source/core/data/dpgroup.cxx @@ -144,41 +144,13 @@ sal_Bool lcl_Search( SCCOL nSourceDim, const ScDPCache* pCache , const std::vect return bFound; } -void lcl_Insert( SCCOL nSourceDim, const ScDPCache* pCache , std::vector< SCROW >& vIdx, SCROW nNew ) +void lcl_Insert( SCCOL nSourceDim, const ScDPCache* pCache , std::vector< SCROW >& vIdx, SCROW nNew ) { SCROW nIndex = 0; if ( !lcl_Search( nSourceDim, pCache, vIdx, nNew ,nIndex ) ) vIdx.insert( vIdx.begin()+nIndex, nNew ); } -template -SCROW lcl_InsertValue(SCCOL nSourceDim, const ScDPCache* pCache, std::vector& vIdx, const ScDPItemData & rData); - -template<> -SCROW lcl_InsertValue(SCCOL nSourceDim, const ScDPCache* pCache, std::vector& vIdx, const ScDPItemData & rData) -{ - SCROW nNewID = pCache->GetAdditionalItemID(rData); - lcl_Insert(nSourceDim, pCache, vIdx, nNewID); - return nNewID; -} - -template<> -SCROW lcl_InsertValue(SCCOL nSourceDim, const ScDPCache* pCache, std::vector& vIdx, const ScDPItemData & rData) -{ - SCROW nItemId = lcl_InsertValue( nSourceDim, pCache, vIdx, rData ); - - if( const ScDPItemData *pData = pCache->GetItemDataById( nSourceDim, nItemId ) ) - const_cast(*pData) = rData; - - return nItemId; -} - -template -void lcl_InsertValue ( SCCOL nSourceDim, const ScDPCache* pCache, std::vector< SCROW >& vIdx, const String& rString, const double& fValue ) -{ - lcl_InsertValue(nSourceDim, pCache, vIdx, ScDPItemData(fValue)); -} - void lcl_AppendDateStr( rtl::OUStringBuffer& rBuffer, double fValue, SvNumberFormatter* pFormatter ) { sal_uLong nFormat = pFormatter->GetStandardFormat( NUMBERFORMAT_DATE, ScGlobal::eLnge ); -- cgit