This patch removes unused code as listed in unusedcode.easy
From 17ff6fa0f72dfb7088e24b331ff7dd65e951fb5f Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvar...@gmail.com>
Date: Sun, 19 Feb 2012 18:26:38 +0100
Subject: [PATCH] Remove unused code in XclRoot.

---
 sc/source/filter/excel/xlroot.cxx |   15 ---------------
 sc/source/filter/inc/xlroot.hxx   |    5 -----
 unusedcode.easy                   |    3 ---
 3 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx
index 21e8a70..0177ce4 100644
--- a/sc/source/filter/excel/xlroot.cxx
+++ b/sc/source/filter/excel/xlroot.cxx
@@ -247,16 +247,6 @@ sal_Int32 XclRoot::GetHmmFromPixelY( double fPixelY ) const
     return static_cast< sal_Int32 >( fPixelY * mrData.mfScreenPixelY + 0.5 );
 }
 
-double XclRoot::GetPixelXFromHmm( sal_Int32 nX ) const
-{
-    return static_cast< double >( (nX - 0.5) / mrData.mfScreenPixelX );
-}
-
-double XclRoot::GetPixelYFromHmm( sal_Int32 nY ) const
-{
-    return static_cast< double >( (nY - 0.5) / mrData.mfScreenPixelY );
-}
-
 uno::Sequence< beans::NamedValue > XclRoot::RequestEncryptionData( ::comphelper::IDocPasswordVerifier& rVerifier ) const
 {
     ::std::vector< OUString > aDefaultPasswords;
@@ -320,11 +310,6 @@ ScRangeName& XclRoot::GetNamedRanges() const
     return *GetDoc().GetRangeName();
 }
 
-ScDBCollection& XclRoot::GetDatabaseRanges() const
-{
-    return *GetDoc().GetDBCollection();
-}
-
 SdrPage* XclRoot::GetSdrPage( SCTAB nScTab ) const
 {
     return ((nScTab >= 0) && GetDoc().GetDrawLayer()) ?
diff --git a/sc/source/filter/inc/xlroot.hxx b/sc/source/filter/inc/xlroot.hxx
index 20eb819..0a652ba 100644
--- a/sc/source/filter/inc/xlroot.hxx
+++ b/sc/source/filter/inc/xlroot.hxx
@@ -188,9 +188,6 @@ public:
     /** Calculates the height of the passed number of pixels in 1/100 mm. */
     sal_Int32           GetHmmFromPixelY( double fPixelY ) const;
 
-    double              GetPixelXFromHmm( sal_Int32 nX ) const;
-    double              GetPixelYFromHmm( sal_Int32 nY ) const;
-
     /** Returns the medium to import from. */
     inline SfxMedium&   GetMedium() const { return mrData.mrMedium; }
     /** Returns the document URL of the imported/exported file. */
@@ -235,8 +232,6 @@ public:
     ScStyleSheetPool&   GetStyleSheetPool() const;
     /** Returns the defined names container of the Calc document. */
     ScRangeName&        GetNamedRanges() const;
-    /** Returns the database ranges container of the Calc document. */
-    ScDBCollection&     GetDatabaseRanges() const;
     /** Returns the drawing layer page of the passed sheet, if present. */
     SdrPage*            GetSdrPage( SCTAB nScTab ) const;
 
diff --git a/unusedcode.easy b/unusedcode.easy
index eb5cec5..afeba1d 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -552,9 +552,6 @@ XclExpFontBuffer::Insert(ScPatternAttr const&, short, XclExpColorType, bool)
 XclExpName::IsHidden() const
 XclExpPivotCache::GetFieldAcc(rtl::OUString const&)
 XclExpString::SetFormats(std::__debug::vector<XclFormatRun, std::allocator<XclFormatRun> > const&)
-XclRoot::GetDatabaseRanges() const
-XclRoot::GetPixelXFromHmm(int) const
-XclRoot::GetPixelYFromHmm(int) const
 XclTokenArray::XclTokenArray(std::__debug::vector<unsigned char, std::allocator<unsigned char> >&, bool)
 XclTokenArrayIterator::Init()
 XclXFBase::HasUsedFlags() const
-- 
1.7.7.6

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to