sc/source/core/data/table3.cxx |   14 --------------
 1 file changed, 14 deletions(-)

New commits:
commit 071a3894013ea2281c157ba0a786e205c1119bba
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Tue Nov 23 12:44:20 2021 +0100
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Wed Nov 24 08:21:54 2021 +0100

    remove superfluous code that has a TODO note about it
    
    The commits introducing this part of code have tests attached,
    so it's fairly easy to check that this part of code is in fact
    not necessary, but if in doubt there's the option of simply asking
    the author of the code.
    
    Change-Id: I3b754090ac462d3ae8e4676fc1643570ec53aac1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125695
    Tested-by: Jenkins
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 0fe6b10b0ba3..42d74aece6b5 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2527,20 +2527,6 @@ public:
                 }
             }
         }
-        else if (rItem.mbRoundForFilter && fQueryVal != 0.0)
-        {
-            /* TODO: shouldn't rItem.mfVal (which fQueryVal is) already had
-             * been stored as rounded in all cases if needed so this extra
-             * rounding is superfluous? Or rather, if not, then rounding it
-             * here may produce different roundings for different cell number
-             * formats, which is odd. This all looks suspicious and the
-             * intention of tdf#142910 commit
-             * f6b143a57d9bd8f5d7b29febcb4e01ee1eb2ff1d isn't quite clear. */
-            if (nNumFmt == NUMBERFORMAT_ENTRY_NOT_FOUND)
-                nNumFmt = getNumFmt( nCol, nRow, pContext);
-            if (nNumFmt)
-                fQueryVal = mrDoc.RoundValueAsShown(fQueryVal, nNumFmt, 
pContext);
-        }
 
         switch (rEntry.eOp)
         {

Reply via email to