From 9233083e090dc8adfa36fa56552bcd3bb5a6bb2a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 7 Sep 2011 00:04:31 +0100 Subject: callcatcher: unused code --- sfx2/inc/sfx2/viewsh.hxx | 1 - sfx2/source/dialog/versdlg.cxx | 17 ----------------- sfx2/source/view/viewsh.cxx | 7 ------- 3 files changed, 25 deletions(-) (limited to 'sfx2') diff --git a/sfx2/inc/sfx2/viewsh.hxx b/sfx2/inc/sfx2/viewsh.hxx index 0a1ffdbc5482..8fccd8c2fe2c 100644 --- a/sfx2/inc/sfx2/viewsh.hxx +++ b/sfx2/inc/sfx2/viewsh.hxx @@ -302,7 +302,6 @@ public: SAL_DLLPRIVATE SfxInPlaceClientList* GetIPClientList_Impl( sal_Bool bCreate = sal_True ) const; SAL_DLLPRIVATE void ResetAllClients_Impl( SfxInPlaceClient *pIP ); SAL_DLLPRIVATE void DiscardClients_Impl(); - SAL_DLLPRIVATE sal_Bool PlugInsActive() const; SAL_DLLPRIVATE SfxPrinter* SetPrinter_Impl( SfxPrinter *pNewPrinter ); SAL_DLLPRIVATE sal_Bool IsShowView_Impl() const; diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index 78b0c24fb6f5..b98ff53ab77e 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -99,7 +99,6 @@ public: void DelDtor(); SvStream& Read( SvStream & ); SvStream& Write( SvStream & ) const; - SvStringsDtor* GetVersions() const; size_t size() const { return aTableList.size(); } @@ -157,22 +156,6 @@ static String ConvertDateTime_Impl(const DateTime& rTime, const LocaleDataWrappe return aStr; } -SvStringsDtor* SfxVersionTableDtor::GetVersions() const -{ - SvStringsDtor *pList = new SvStringsDtor; - LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() ); - - for ( size_t i = 0, n = aTableList.size(); i < n; ++i ) - { - SfxVersionInfo* pInfo = aTableList[ i ]; - String *pString = new String( pInfo->aComment ); - (*pString) += DEFINE_CONST_UNICODE( "; " ); - (*pString) += ConvertDateTime_Impl( pInfo->aCreationDate, aLocaleWrapper ); - pList->Insert( pString, pList->Count() ); - } - return pList; -} - // Caution in the code this array si indexed directly (0, 1, ...) static long nTabs_Impl[] = { diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index eb56125b1f89..ff96e69ae6a6 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1859,13 +1859,6 @@ void SfxViewShell::CheckIPClient_Impl( SfxInPlaceClient *pIPClient, const Rectan } } -//-------------------------------------------------------------------- - -sal_Bool SfxViewShell::PlugInsActive() const -{ - return pImp->m_bPlugInsActive; -} - //-------------------------------------------------------------------- void SfxViewShell::DiscardClients_Impl() -- cgit