This patch removes unused code as listed in unusedcode.easy
From 038875906820927ecb026f16db40ab3621e8a58d Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvar...@gmail.com>
Date: Mon, 27 Feb 2012 20:07:47 +0100
Subject: [PATCH] Remove unused code in BiffObjLineModel.

---
 oox/inc/oox/xls/drawingmanager.hxx |    3 ---
 oox/source/xls/drawingmanager.cxx  |    5 -----
 unusedcode.easy                    |    1 -
 3 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/oox/inc/oox/xls/drawingmanager.hxx b/oox/inc/oox/xls/drawingmanager.hxx
index 4ec80d7..758c60e 100644
--- a/oox/inc/oox/xls/drawingmanager.hxx
+++ b/oox/inc/oox/xls/drawingmanager.hxx
@@ -59,9 +59,6 @@ struct BiffObjLineModel
     bool                mbAuto;             /// True = automatic line format.
 
     explicit            BiffObjLineModel();
-
-    /** Returns true, if the line formatting is visible (automatic or explicit). */
-    bool                isVisible() const;
 };
 
 // ============================================================================
diff --git a/oox/source/xls/drawingmanager.cxx b/oox/source/xls/drawingmanager.cxx
index d8cf3b1..afadd1f 100644
--- a/oox/source/xls/drawingmanager.cxx
+++ b/oox/source/xls/drawingmanager.cxx
@@ -191,11 +191,6 @@ BiffObjLineModel::BiffObjLineModel() :
 {
 }
 
-bool BiffObjLineModel::isVisible() const
-{
-    return mbAuto || (mnStyle != BIFF_OBJ_LINE_NONE);
-}
-
 BiffInputStream& operator>>( BiffInputStream& rStrm, BiffObjLineModel& rModel )
 {
     sal_uInt8 nFlags;
diff --git a/unusedcode.easy b/unusedcode.easy
index b5090c1..f6637a4 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1070,7 +1070,6 @@ oox::xls::BiffHelper::calcRkFromDouble(int&, double)
 oox::xls::BiffInputStream::sizeBase() const
 oox::xls::BiffInputStream::skipByteString(bool)
 oox::xls::BiffInputStream::skipUniString()
-oox::xls::BiffObjLineModel::isVisible() const
 oox::xls::BiffOutputStream::BiffOutputStream(oox::BinaryOutputStream&, unsigned short)
 oox::xls::BiffOutputStream::endRecord()
 oox::xls::BiffOutputStream::fill(unsigned char, int, unsigned long)
-- 
1.7.7.6

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

Reply via email to