From 00445037550d07952ea428a4fcd0a3f205f75794 Mon Sep 17 00:00:00 2001 From: Santiago Martinez Date: Tue, 31 Jan 2012 19:59:31 +0100 Subject: [PATCH] Remove unused code. --- .../view/axes/Tickmarks_Equidistant.cxx | 27 ------------------- .../view/axes/Tickmarks_Equidistant.hxx | 5 ---- unusedcode.easy | 3 --- 3 files changed, 35 deletions(-) diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.cxx b/chart2/source/view/axes/Tickmarks_Equidistant.cxx index 7e15ddad296b..73379b020cfa 100644 --- a/chart2/source/view/axes/Tickmarks_Equidistant.cxx +++ b/chart2/source/view/axes/Tickmarks_Equidistant.cxx @@ -626,33 +626,6 @@ bool EquidistantTickIter::gotoNext() return true; } -bool EquidistantTickIter::gotoIndex( sal_Int32 nTickIndex ) -{ - if( nTickIndex < 0 ) - return false; - if( nTickIndex >= m_nTickCount ) - return false; - - if( nTickIndex < m_nCurrentPos ) - if( !gotoFirst() ) - return false; - - while( nTickIndex > m_nCurrentPos ) - if( !gotoNext() ) - return false; - - return true; -} - -sal_Int32 EquidistantTickIter::getCurrentIndex() const -{ - return m_nCurrentPos; -} -sal_Int32 EquidistantTickIter::getMaxIndex() const -{ - return m_nTickCount-1; -} - double* EquidistantTickIter::nextValue() { if( gotoNext() ) diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.hxx b/chart2/source/view/axes/Tickmarks_Equidistant.hxx index c312b2fed8fb..c9f2dc521767 100644 --- a/chart2/source/view/axes/Tickmarks_Equidistant.hxx +++ b/chart2/source/view/axes/Tickmarks_Equidistant.hxx @@ -60,11 +60,6 @@ public: sal_Int32 getCurrentDepth() const { return m_nCurrentDepth; } -protected: - bool gotoIndex( sal_Int32 nTickIndex ); - sal_Int32 getCurrentIndex() const; - sal_Int32 getMaxIndex() const; - private: //methods sal_Int32 getIntervalCount( sal_Int32 nDepth ); bool isAtLastPartTick(); diff --git a/unusedcode.easy b/unusedcode.easy index a54e369c8a79..32f3dacaa8c4 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1228,9 +1228,6 @@ canvas::tools::mergeViewAndRenderState(com::sun::star::rendering::ViewState&, co canvas::tools::prependToViewState(com::sun::star::rendering::ViewState&, basegfx::B2DHomMatrix const&) canvas::tools::verifyInput(com::sun::star::geometry::RealSize2D const&, char const*, com::sun::star::uno::Reference const&, short) canvas::tools::verifyInput(com::sun::star::rendering::FloatingPointBitmapLayout const&, char const*, com::sun::star::uno::Reference const&, short) -chart::EquidistantTickIter::getCurrentIndex() const -chart::EquidistantTickIter::getMaxIndex() const -chart::EquidistantTickIter::gotoIndex(int) cmis::Content::exchangeIdentity(com::sun::star::uno::Reference const&) cmis::Content::queryChildren(std::__debug::list, std::allocator > >&) comphelper::AccessibleEventNotifier::getEventListeners(unsigned int)