[Libreoffice-commits] .: svtools/source unusedcode.easy

Marc-André Laverdière malaverdiere at kemper.freedesktop.org
Wed Sep 28 06:29:19 PDT 2011


 svtools/source/filter/wmf/enhwmf.cxx |   35 -----------------------------------
 svtools/source/filter/wmf/winmtf.hxx |    1 -
 unusedcode.easy                      |    1 -
 3 files changed, 37 deletions(-)

New commits:
commit 706651b37fe2d0b50cde0ff950d2264b8174cf7e
Author: Marc-Andre Laverdiere <marc-andre at atc.tcs.com>
Date:   Mon Sep 26 17:36:16 2011 +0530

    Removed unused code EnhWMFReader::ReadGDIComment()

diff --git a/svtools/source/filter/wmf/enhwmf.cxx b/svtools/source/filter/wmf/enhwmf.cxx
index 618f13d..1c83212 100644
--- a/svtools/source/filter/wmf/enhwmf.cxx
+++ b/svtools/source/filter/wmf/enhwmf.cxx
@@ -308,41 +308,6 @@ void EnhWMFReader::ReadEMFPlusComment(sal_uInt32 length, sal_Bool& bHaveDC)
     pWMF->SeekRel(nRemainder);
 }
 
-void EnhWMFReader::ReadGDIComment()
-{
-    sal_uInt32 type;
-
-    *pWMF >> type;
-
-    switch( type ) {
-    case 2: {
-        sal_Int32 x, y, r, b;
-
-        EMFP_DEBUG(printf ("\t\tBEGINGROUP\n"));
-
-        *pWMF >> x >> y >> r >> b;
-        EMFP_DEBUG(printf ("\t\tbounding rectangle: %d,%d x %d,%d\n", (int)x,(int)y,(int)r,(int) b));
-
-        sal_uInt32 l;
-
-        *pWMF >> l;
-        EMFP_DEBUG(printf ("\t\tdescription length: %d\n", (int)l));
-        break;
-    }
-    case 3: {
-        EMFP_DEBUG(printf ("\t\tENDGROUP\n"));
-        break;
-    }
-    case 0x40000004: {
-        EMFP_DEBUG(printf ("\t\tMULTIFORMATS\n"));
-        break;
-    }
-    default:
-        EMFP_DEBUG(printf ("\t\tunknown GDIComment\n"));
-        EMFP_DEBUG(dumpWords (*pWMF, 16));
-    }
-}
-
 /**
  * Reads polygons from the stream.
  * The <class T> parameter is for the type of the points
diff --git a/svtools/source/filter/wmf/winmtf.hxx b/svtools/source/filter/wmf/winmtf.hxx
index c6561f6..af0d960 100644
--- a/svtools/source/filter/wmf/winmtf.hxx
+++ b/svtools/source/filter/wmf/winmtf.hxx
@@ -835,7 +835,6 @@ public:
 
     sal_Bool        ReadEnhWMF();
     void            ReadEMFPlusComment(sal_uInt32 length, sal_Bool& bHaveDC);
-    void            ReadGDIComment();
 private:
     template <class T> void ReadAndDrawPolyPolygon();
     template <class T> Polygon ReadPolygon(sal_uInt16 nStartIndex, sal_uInt16 nPoints);
diff --git a/unusedcode.easy b/unusedcode.easy
index 5cd6d17..fddbbdb 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -151,7 +151,6 @@ EditView::SetParaAttribs(SfxItemSet const&, unsigned short)
 EditView::SetPointer(Pointer const&)
 ElementCollector::isAbleToNotify() const
 ElementCollector::setSecurityId(int)
-EnhWMFReader::ReadGDIComment()
 ExtraKernInfo::HasKernPairs() const
 FieldEntry::GetBookmarkType()
 FileControl::SetButtonText(String const&)


More information about the Libreoffice-commits mailing list