[Libreoffice-commits] core.git: drawinglayer/source

Chris Sherlock chris.sherlock79 at gmail.com
Sun Oct 1 20:54:35 UTC 2017


 drawinglayer/source/tools/emfphelperdata.cxx |   71 ---------------------------
 1 file changed, 1 insertion(+), 70 deletions(-)

New commits:
commit a2a3e06a29077d4274dc15eea28a01afe22e3658
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Mon Oct 2 02:32:33 2017 +1100

    drawinglayer: remove commented out code
    
    Change-Id: I20fd2665f9fed59b45127dd4aa3dbce0fc58ac17
    Reviewed-on: https://gerrit.libreoffice.org/43006
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Chris Sherlock <chris.sherlock79 at gmail.com>

diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx
index 73422124c2d5..1dc3d611a046 100644
--- a/drawinglayer/source/tools/emfphelperdata.cxx
+++ b/drawinglayer/source/tools/emfphelperdata.cxx
@@ -92,44 +92,6 @@ namespace emfplushelper
     {
     }
 
-//    OutDevState::OutDevState() :
-//        clip(),
-//        clipRect(),
-//        xClipPoly(),
-//
-//        lineColor(),
-//        fillColor(),
-//        textColor(),
-//        textFillColor(),
-//        textLineColor(),
-//
-//        xFont(),
-//        transform(),
-//        mapModeTransform(),
-//        fontRotation(0.0),
-//
-//        textEmphasisMarkStyle(FontEmphasisMark::NONE),
-//        pushFlags(PushFlags::ALL),
-//        textDirection(css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT),
-//        textAlignment(0), // TODO(Q2): Synchronize with implrenderer
-//                            // and possibly new rendering::TextAlignment
-//        textReliefStyle(FontRelief::NONE),
-//        textOverlineStyle(LINESTYLE_NONE),
-//        textUnderlineStyle(LINESTYLE_NONE),
-//        textStrikeoutStyle(STRIKEOUT_NONE),
-//        textReferencePoint(ALIGN_BASELINE),
-//
-//        isTextOutlineModeSet(false),
-//        isTextEffectShadowSet(false),
-//        isTextWordUnderlineSet(false),
-//
-//        isLineColorSet(false),
-//        isFillColorSet(false),
-//        isTextFillColorSet(false),
-//        isTextLineColorSet(false)
-//    {
-//    }
-
     void EmfPlusHelperData::processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags, sal_uInt32 dataSize, bool bUseWholeStream)
     {
         sal_uInt32 index;
@@ -718,8 +680,6 @@ namespace emfplushelper
         mbMultipart(false),
         mMFlags(0),
         mMStream(),
-//        mGSStack(),
-//        mGSContainerStack(),
         mrTargetHolders(rTargetHolders),
         mrPropertyHolders(rPropertyHolders)
     {
@@ -914,17 +874,9 @@ namespace emfplushelper
 
                         ::basegfx::B2DPolyPolygon polyPolygon(polygon);
                         if (type == EmfPlusRecordTypeFillPie)
-                        {
                             EMFPPlusFillPolygon(polyPolygon, flags & 0x8000, brushIndexOrColor);
-    //                        EMFPPlusFillPolygon(polyPolygon,
-    //                            rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
-                        }
                         else
-                        {
                             EMFPPlusDrawPolygon(polyPolygon, flags & 0xff);
-    //                        EMFPPlusDrawPolygon(polyPolygon,
-    //                            rFactoryParms, rState, rCanvas, flags & 0xff);
-                        }
                     }
                     break;
                     case EmfPlusRecordTypeFillPath:
@@ -935,7 +887,6 @@ namespace emfplushelper
                         SAL_INFO("cppcanvas.emf", "EMF+ FillPath slot: " << index);
 
                         EMFPPlusFillPolygon(static_cast<EMFPPath*>(maEMFPObjects[index].get())->GetPolygon(*this), flags & 0x8000, brushIndexOrColor);
-    //                    EMFPPlusFillPolygon(static_cast<EMFPPath*>(maEMFPObjects[index])->GetPolygon(*this), rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
                     }
                     break;
                     case EmfPlusRecordTypeDrawEllipse:
@@ -962,17 +913,9 @@ namespace emfplushelper
                                 ::basegfx::utils::createPolygonFromEllipse(mappedCenter, mappedSize.getX(), mappedSize.getY())));
 
                         if (type == EmfPlusRecordTypeFillEllipse)
-                        {
                             EMFPPlusFillPolygon(polyPolygon, flags & 0x8000, brushIndexOrColor);
-    //                        EMFPPlusFillPolygon(polyPolygon,
-    //                            rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
-                        }
                         else
-                        {
                             EMFPPlusDrawPolygon(polyPolygon, flags & 0xff);
-    //                        EMFPPlusDrawPolygon(polyPolygon,
-    //                            rFactoryParms, rState, rCanvas, flags & 0xff);
-                        }
                     }
                     break;
                     case EmfPlusRecordTypeFillRects:
@@ -1012,17 +955,9 @@ namespace emfplushelper
 
                             ::basegfx::B2DPolyPolygon polyPolygon(polygon);
                             if (type == EmfPlusRecordTypeFillRects)
-                            {
                                 EMFPPlusFillPolygon(polyPolygon, isColor, brushIndexOrColor);
-    //                            EMFPPlusFillPolygon(polyPolygon,
-    //                                rFactoryParms, rState, rCanvas, isColor, brushIndexOrColor);
-                            }
                             else
-                            {
                                 EMFPPlusDrawPolygon(polyPolygon, flags & 0xff);
-    //                            EMFPPlusDrawPolygon(polyPolygon,
-    //                                rFactoryParms, rState, rCanvas, flags & 0xff);
-                            }
                         }
                         break;
                     }
@@ -1041,7 +976,6 @@ namespace emfplushelper
                         path.Read(rMS, flags, *this);
 
                         EMFPPlusFillPolygon(path.GetPolygon(*this), flags & 0x8000, brushIndexOrColor);
-    //                    EMFPPlusFillPolygon(path.GetPolygon(*this), rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
 
                         break;
                     }
@@ -1056,7 +990,6 @@ namespace emfplushelper
                         // 0x2000 bit indicates whether to draw an extra line between the last point
                         // and the first point, to close the shape.
                         EMFPPlusDrawPolygon(path.GetPolygon(*this, true, (flags & 0x2000)), flags);
-    //                    EMFPPlusDrawPolygon(path.GetPolygon(*this, true, (flags & 0x2000)), rFactoryParms, rState, rCanvas, flags);
 
                         break;
                     }
@@ -1070,7 +1003,6 @@ namespace emfplushelper
                         SAL_WARN_IF(!path, "cppcanvas.emf", "EmfPlusRecordTypeDrawPath missing path");
 
                         EMFPPlusDrawPolygon(path->GetPolygon(*this), penIndex);
-    //                    EMFPPlusDrawPolygon(path->GetPolygon(*this), rFactoryParms, rState, rCanvas, penIndex);
 
                         break;
                     }
@@ -1112,8 +1044,7 @@ namespace emfplushelper
                             cubicBezier.adaptiveSubdivideByDistance(aPolygon, 10.0);
 
                             EMFPPlusDrawPolygon(::basegfx::B2DPolyPolygon(aPolygon), flags & 0xff);
-    //                        EMFPPlusDrawPolygon(::basegfx::B2DPolyPolygon(aPolygon), rFactoryParms,
-    //                            rState, rCanvas, flags & 0xff);
+
                             // The ending coordinate of one Bezier curve is the starting coordinate of the next.
                             x1 = x4;
                             y1 = y4;


More information about the Libreoffice-commits mailing list