This patch removes unused code as listed in unusedcode.eas
From 4299bf917c9ac0c02dd5aecc8b40e09e775136f6 Mon Sep 17 00:00:00 2001
From: Santiago Martinez
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::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 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
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice