svx/source/dialog/ctredlin.cxx |   13 -------------
 1 file changed, 13 deletions(-)

New commits:
commit 729716c737f43cf93601aa028cd1967de31052c4
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Mon Oct 21 08:40:02 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Oct 21 12:13:22 2024 +0200

    tdf#163486: PVS: Identical branches
    
    V1037 Two or more case-branches perform the same actions. Check lines: 194, 
200
    V1037 Two or more case-branches perform the same actions. Check lines: 796, 
800
    V1037 Two or more case-branches perform the same actions. Check lines: 804, 
810
    
    Change-Id: Icef65820f99405ca78d31dc9e1afc0a9d5c6b355
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175279
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx
index 66d00c9e7ecb..cdcdeed1ff2a 100644
--- a/svx/source/dialog/ctredlin.cxx
+++ b/svx/source/dialog/ctredlin.cxx
@@ -191,11 +191,6 @@ void SvxRedlinTable::UpdateFilterTest()
                                 aDaTiFilterLast=aDTMax;
                                 break;
         case SvxRedlinDateMode::EQUAL:
-                                aDaTiFilterFirst=aDaTiFirst;
-                                aDaTiFilterLast=aDaTiFirst;
-                                aDaTiFilterFirst.SetTime(aTMin.GetTime());
-                                aDaTiFilterLast.SetTime(aTMax.GetTime());
-                                break;
         case SvxRedlinDateMode::NOTEQUAL:
                                 aDaTiFilterFirst=aDaTiFirst;
                                 aDaTiFilterLast=aDaTiFirst;
@@ -793,19 +788,11 @@ IMPL_LINK_NOARG(SvxTPFilter, SelDateHdl, weld::ComboBox&, 
void)
     switch(nKind)
     {
         case SvxRedlinDateMode::BEFORE:
-            EnableDateLine1(true);
-            EnableDateLine2(false);
-            break;
         case SvxRedlinDateMode::SINCE:
             EnableDateLine1(true);
             EnableDateLine2(false);
             break;
         case SvxRedlinDateMode::EQUAL:
-            EnableDateLine1(true);
-            m_xTfDate->set_sensitive(false);
-            m_xTfDate->set_text(OUString());
-            EnableDateLine2(false);
-            break;
         case SvxRedlinDateMode::NOTEQUAL:
             EnableDateLine1(true);
             m_xTfDate->set_sensitive(false);

Reply via email to