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

Chris Sherlock chris.sherlock79 at gmail.com
Tue Mar 6 04:10:12 UTC 2018


 vcl/source/bitmap/bitmappaint.cxx |   12 ------------
 1 file changed, 12 deletions(-)

New commits:
commit 4eb78dc722e33f03b4ee57d43cbc64fe94e6e9cf
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Thu Mar 1 06:13:29 2018 +1100

    vcl: remove commented code from bitmappaint.cxx
    
    Change-Id: I80c1f8961bee4e72b7ffd8e4d9647dbb40f4fc10
    Reviewed-on: https://gerrit.libreoffice.org/50531
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/vcl/source/bitmap/bitmappaint.cxx b/vcl/source/bitmap/bitmappaint.cxx
index 38472333a0c3..2de3624007e2 100644
--- a/vcl/source/bitmap/bitmappaint.cxx
+++ b/vcl/source/bitmap/bitmappaint.cxx
@@ -646,15 +646,12 @@ vcl::Region Bitmap::CreateRegion(const Color& rColor, const tools::Rectangle& rR
         const long nBottom = aRect.Bottom();
         const BitmapColor aMatch(pReadAcc->GetBestMatchingColor(rColor));
 
-        //RectangleVector aRectangles;
-        //aRegion.ImplBeginAddRect();
         std::vector<long> aLine;
         long nYStart(nTop);
         long nY(nTop);
 
         for (; nY <= nBottom; nY++)
         {
-            //aSubRect.Top() = aSubRect.Bottom() = nY;
             std::vector<long> aNewLine;
             long nX(nLeft);
             Scanline pScanlineRead = pReadAcc->GetScanline(nY);
@@ -667,7 +664,6 @@ vcl::Region Bitmap::CreateRegion(const Color& rColor, const tools::Rectangle& rR
                 if (nX <= nRight)
                 {
                     aNewLine.push_back(nX);
-                    //aSubRect.Left() = nX;
 
                     while ((nX <= nRight)
                            && (aMatch == pReadAcc->GetPixelFromData(pScanlineRead, nX)))
@@ -675,12 +671,7 @@ vcl::Region Bitmap::CreateRegion(const Color& rColor, const tools::Rectangle& rR
                         nX++;
                     }
 
-                    //aSubRect.Right() = nX - 1;
                     aNewLine.push_back(nX - 1);
-
-                    //aRegion.ImplAddRect( aSubRect );
-                    //aRectangles.push_back(aSubRect);
-                    //aRegion.Union(aSubRect);
                 }
             }
 
@@ -726,9 +717,6 @@ vcl::Region Bitmap::CreateRegion(const Color& rColor, const tools::Rectangle& rR
             }
         }
 
-        //aRegion.ImplEndAddRect();
-        //aRegion.SetRegionRectangles(aRectangles);
-
         pReadAcc.reset();
     }
     else


More information about the Libreoffice-commits mailing list