dbaccess/source/ui/misc/UITools.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 7d9781367133f8d79bbd96e638be51119702930a
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Jun 8 10:01:58 2021 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Jun 8 11:27:29 2021 +0200

    -Werror,-Wunused-but-set-variable (Clang 13 trunk)
    
    ...ever since the code's introduction in
    59560e4c13de5787a586ea643f6e58371ecf4c14 "INTEGRATION: CWS dba22"
    
    Change-Id: Ic8acc06c85a3f82d24467cb403250df095c6b869
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116812
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/dbaccess/source/ui/misc/UITools.cxx 
b/dbaccess/source/ui/misc/UITools.cxx
index 03ad7038fc75..08b6bc5f2af0 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -195,7 +195,6 @@ Reference< XDataSource > getDataSourceByName( const 
OUString& _rDataSourceName,
     Reference< XDatabaseContext > xDatabaseContext = 
DatabaseContext::create(_rxContext);
 
     Reference< XDataSource > xDatasource;
-    Any aError;
     SQLExceptionInfo aSQLError;
     try
     {
@@ -218,8 +217,6 @@ Reference< XDataSource > getDataSourceByName( const 
OUString& _rDataSourceName,
         else
         {
             aSQLError = SQLExceptionInfo( e.TargetException );
-            if ( !aSQLError.isValid() )
-                aError = e.TargetException;
         }
     }
     catch( const Exception& )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to