This patch removes unused code as listed in unusedcode.easy
From 4eaa8adb17c0334f08c83509644b45553254376e Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Tue, 31 Jan 2012 19:59:31 +0100
Subject: [PATCH] Remove unused code.
---
chart2/source/view/axes/Tickmarks_Equidistant.cxx | 27 ---------------------
chart2/source/view/axes/Tickmarks_Equidistant.hxx | 5 ----
unusedcode.easy | 3 --
3 files changed, 0 insertions(+), 35 deletions(-)
diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.cxx
b/chart2/source/view/axes/Tickmarks_Equidistant.cxx
index 7e15dda..73379b0 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 c312b2f..c9f2dc5 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 a54e369..32f3dac 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<com::sun::star::uno::XInterface> const&, short)
canvas::tools::verifyInput(com::sun::star::rendering::FloatingPointBitmapLayout const&, char
const*, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, short)
-chart::EquidistantTickIter::getCurrentIndex() const
-chart::EquidistantTickIter::getMaxIndex() const
-chart::EquidistantTickIter::gotoIndex(int)
cmis::Content::exchangeIdentity(com::sun::star::uno::Reference<com::sun::star::ucb::XContentIdentifier>
const&)
cmis::Content::queryChildren(std::__debug::list<rtl::Reference<cmis::Content>,
std::allocator<rtl::Reference<cmis::Content> > >&)
comphelper::AccessibleEventNotifier::getEventListeners(unsigned int)
--
1.7.7.6
Context
- [Libreoffice] [PATCH] Remove unused code · Santiago Martinez
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.