Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


This patch removes unused code as listed in unusedcode.eas
From 4299bf917c9ac0c02dd5aecc8b40e09e775136f6 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Wed, 7 Mar 2012 20:54:46 +0100
Subject: [PATCH] Remove unused code in vbahelper

---
 unusedcode.easy                          |    4 ----
 vbahelper/inc/vbahelper/vbahelper.hxx    |    4 ----
 vbahelper/source/vbahelper/vbahelper.cxx |   14 --------------
 3 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/unusedcode.easy b/unusedcode.easy
index 9e16d5f..255ef66 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -907,10 +907,6 @@ 
nullcanvas::SpriteCanvasHelper::opaqueUpdate(basegfx::B2DConnectedRanges<canvas:
 nullcanvas::SpriteCanvasHelper::scrollUpdate(basegfx::B2DRange const&, basegfx::B2DRange const&, 
basegfx::B2DConnectedRanges<canvas::SpriteRedrawManager::SpriteInfo>::ConnectedComponents const&)
 o3tltests::cow_wrapper_client2::queryUnmodified() const
 o3tltests::cow_wrapper_client3::queryUnmodified() const
-ooo::vba::Millimeter::get()
-ooo::vba::Millimeter::getInPoints()
-ooo::vba::Millimeter::set(double)
-ooo::vba::Millimeter::setInHundredthsOfOneMillimeter(double)
 ooo::vba::createVBAUnoAPIService(SfxObjectShell*, char const*)
 ooo::vba::excel::getViewFrame(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&)
 ooo::vba::excel::isInPrintPreview(SfxViewFrame*)
diff --git a/vbahelper/inc/vbahelper/vbahelper.hxx b/vbahelper/inc/vbahelper/vbahelper.hxx
index 00dfe58..190243c 100644
--- a/vbahelper/inc/vbahelper/vbahelper.hxx
+++ b/vbahelper/inc/vbahelper/vbahelper.hxx
@@ -147,12 +147,8 @@ public:
 
     Millimeter(double mm);
 
-    void set(double mm);
     void setInPoints(double points) ;
-    void setInHundredthsOfOneMillimeter(double hmm);
-    double get();
     double getInHundredthsOfOneMillimeter();
-    double getInPoints();
     static sal_Int32 getInHundredthsOfOneMillimeter(double points);
     static double getInPoints(int _hmm);
 };
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index f99077d..70fe850 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -1179,29 +1179,15 @@ Millimeter::Millimeter():m_nMillimeter(0) {}
 
 Millimeter::Millimeter(double mm):m_nMillimeter(mm) {}
 
-void Millimeter::set(double mm) { m_nMillimeter = mm; }
 void Millimeter::setInPoints(double points)
 {
     m_nMillimeter = points * factor / 100.0;
 }
 
-void Millimeter::setInHundredthsOfOneMillimeter(double hmm)
-{
-    m_nMillimeter = hmm / 100;
-}
-
-double Millimeter::get()
-{
-    return m_nMillimeter;
-}
 double Millimeter::getInHundredthsOfOneMillimeter()
 {
     return m_nMillimeter * 100;
 }
-double Millimeter::getInPoints()
-{
-    return m_nMillimeter / factor * 100.0;
-}
 
 sal_Int32 Millimeter::getInHundredthsOfOneMillimeter(double points)
 {
-- 
1.7.7.6


Context


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.