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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 9 15:43:00 UTC 2021


 sfx2/source/bastyp/fltfnc.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 97654133f64eed1c1e6d35188315f5fb22f2d936
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jun 8 11:21:16 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jun 9 17:42:07 2021 +0200

    -Werror,-Wunused-but-set-variable (Clang 13 trunk)
    
    ...after e79e8117dcc7475d8d90afeaaac9eb7050ff244e "loplugin:unusedfields in
    sfx2" had removed the (only) read of sPattern
    
    Change-Id: I2413af34b15dec45c46df0ffabf1d910f92dd695
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116822
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index bd48141ac7f5..83b25b015e4d 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -895,7 +895,6 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
     OUString sDefaultTemplate    ;
     OUString sUserData           ;
     OUString sExtension          ;
-    OUString sPattern            ;
     OUString sServiceName        ;
     bool bEnabled = true         ;
 
@@ -975,12 +974,6 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
                             sExtension = implc_convertStringlistToString( lExtensions, ';', u"*." );
                         }
                     }
-                    else if ( rTypeProperty.Name == "URLPattern" )
-                    {
-                            uno::Sequence< OUString > lPattern;
-                            rTypeProperty.Value >>= lPattern;
-                            sPattern = implc_convertStringlistToString( lPattern, ';', u"" );
-                    }
                 }
             }
         }


More information about the Libreoffice-commits mailing list