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

Miklos Vajna vmiklos at collabora.co.uk
Thu Oct 6 07:33:19 UTC 2016


 sw/source/core/layout/virtoutp.cxx |   26 --------------------------
 1 file changed, 26 deletions(-)

New commits:
commit 41bbe4c53bc58f6156601b4e358b1546779277c0
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Oct 6 08:48:20 2016 +0200

    sw: remove unused DbgRect
    
    Seems the last user was removed in commit
    2513329487f2b39740f3fa16eb1b07d9b191c699 (2004/06/23 12:50:40 cmc
    1.7.568.1: #i30554# remove unused code inside #ifdef USED guards).
    
    Change-Id: If49b4d34786b091f06df7064c5b0fd649310365d
    Reviewed-on: https://gerrit.libreoffice.org/29550
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sw/source/core/layout/virtoutp.cxx b/sw/source/core/layout/virtoutp.cxx
index f10e1b4..690a166 100644
--- a/sw/source/core/layout/virtoutp.cxx
+++ b/sw/source/core/layout/virtoutp.cxx
@@ -21,32 +21,6 @@
 #include "viewopt.hxx"
 #include "rootfrm.hxx"
 
-#if OSL_DEBUG_LEVEL > 1
-
-class DbgRect
-{
-        OutputDevice *pOut;
-public:
-        DbgRect( OutputDevice *pOut, const Rectangle &rRect,
-                 const ColorData eColor = COL_LIGHTBLUE );
-};
-
-inline DbgRect::DbgRect( OutputDevice *pOutDev, const Rectangle &rRect,
-                         const ColorData eColor )
-   :pOut( pOutDev )
-{
-    if( pOut )
-    {
-        pOut->Push( PushFlags::FILLCOLOR|PushFlags::LINECOLOR );
-        pOut->SetLineColor( eColor );
-        pOut->SetFillColor();
-        pOut->DrawRect( rRect );
-        pOut->Pop();
-    }
-}
-
-#endif
-
 /* The SWLayVout class manages the virtual output devices.
  * RootFrame has a static member of this class which is created in FrameInit
  * and destroyed in FrameFinit.


More information about the Libreoffice-commits mailing list