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

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 30 07:24:36 UTC 2021


 sw/source/core/bastyp/tabcol.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit f9b6d5c58e1e8e3e2412ff94e30eb4a21b98b099
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Sep 29 20:12:16 2021 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Sep 30 09:24:01 2021 +0200

    sw: remove useless debug code in SwTabCols::Insert()
    
    gdb or SAL_DEBUG() is a better tool to examine the elements of a vector.
    
    Change-Id: I6ff1d3eb7fcb44654a526eb3c5d09b7e06970566
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122834
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/sw/source/core/bastyp/tabcol.cxx b/sw/source/core/bastyp/tabcol.cxx
index cb01a5e3c3ae..4efc9d8ef81c 100644
--- a/sw/source/core/bastyp/tabcol.cxx
+++ b/sw/source/core/bastyp/tabcol.cxx
@@ -74,13 +74,6 @@ void SwTabCols::Insert( tools::Long nValue, bool bValue, size_t nPos )
     aEntry.nMax = LONG_MAX;
     aEntry.bHidden = bValue;
     m_aData.insert( m_aData.begin() + nPos, aEntry );
-
-#if OSL_DEBUG_LEVEL > 1
-    for ( const auto& rPos : m_aData )
-    {
-        aEntry = rPos;
-    }
-#endif
 }
 
 void SwTabCols::Remove( size_t nPos, size_t nCount )


More information about the Libreoffice-commits mailing list