From 3ab04ef5528276682de8b8e91033bf81457d5a56 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Mon, 20 Feb 2012 13:19:34 +0100 Subject: [PATCH] unusedcode.easy: SwProtocol::GetVar --- sw/source/core/inc/dbg_lay.hxx | 3 --- sw/source/core/layout/dbg_lay.cxx | 8 -------- unusedcode.easy | 1 - 3 files changed, 12 deletions(-) diff --git a/sw/source/core/inc/dbg_lay.hxx b/sw/source/core/inc/dbg_lay.hxx index eaa104400c2a..cfeead2bff49 100644 --- a/sw/source/core/inc/dbg_lay.hxx +++ b/sw/source/core/inc/dbg_lay.hxx @@ -84,7 +84,6 @@ public: static void Record( const SwFrm* pFrm, sal_uLong nFunction, sal_uLong nAction, void* pParam ); static void Init(); static void Stop(); - static void GetVar( const sal_uInt16 nNo, long& rVar ); }; class SwEnterLeave @@ -103,7 +102,6 @@ public: #define PROTOCOL_INIT SwProtocol::Init(); #define PROTOCOL_STOP SwProtocol::Stop(); #define PROTOCOL_ENTER( pFrm, nFunc, nAct, pPar ) SwEnterLeave aEnter( pFrm, nFunc, nAct, pPar ); -#define GET_VARIABLE( nNo, nVar ) SwProtocol::GetVar( nNo, nVar ); #else @@ -111,7 +109,6 @@ public: #define PROTOCOL_INIT #define PROTOCOL_STOP #define PROTOCOL_ENTER( pFrm, nFunc, nAct, pPar ) -#define GET_VARIABLE( nNo, nVar ) #endif diff --git a/sw/source/core/layout/dbg_lay.cxx b/sw/source/core/layout/dbg_lay.cxx index f435a17da299..b3458ff0e116 100644 --- a/sw/source/core/layout/dbg_lay.cxx +++ b/sw/source/core/layout/dbg_lay.cxx @@ -161,8 +161,6 @@ public: sal_Bool DeleteFrm( sal_uInt16 nFrmId ); // FrmId entfernen, diesen nicht mehr Aufzeichnen void FileInit(); // Auslesen der INI-Datei void ChkStream() { if( !pStream ) NewStream(); } - void GetVar( const sal_uInt16 nNo, long& rVar ) - { if( nNo < aVars.size() ) rVar = aVars[ nNo ]; } }; /* -------------------------------------------------- @@ -273,12 +271,6 @@ void SwProtocol::Stop() nRecord = 0; } -void SwProtocol::GetVar( const sal_uInt16 nNo, long& rVar ) -{ - if( pImpl ) - pImpl->GetVar( nNo, rVar ); -} - SwImplProtocol::SwImplProtocol() : pStream( NULL ), pFrmIds( NULL ), nTypes( 0xffff ), nLineCount( 0 ), nMaxLines( USHRT_MAX ), nTestMode( 0 ) diff --git a/unusedcode.easy b/unusedcode.easy index 0c6dd9e87efa..a5fe6793f24a 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -375,7 +375,6 @@ SwPosFlyFrms::Insert(SwPosFlyFrm* const*, unsigned short) SwPosFlyFrms::Insert(SwPosFlyFrms const*, unsigned short, unsigned short) SwPosFlyFrms::Remove(SwPosFlyFrm* const&, unsigned short) SwPosFlyFrms::Remove(unsigned short, unsigned short) -SwProtocol::GetVar(unsigned short, long&) SwRects::Replace(SwRect const&, unsigned short) SwRects::Replace(SwRect const*, unsigned short, unsigned short) SwRects::_ForEach(unsigned short, unsigned short, unsigned char (*)(SwRect const&, void*), void*)