[Libreoffice-commits] core.git: connectivity/source mysqlc/source

Stephan Bergmann sbergman at redhat.com
Fri Sep 1 11:40:55 UTC 2017


 connectivity/source/drivers/macab/MacabStatement.hxx |    2 --
 mysqlc/source/mysqlc_statement.cxx                   |    4 +---
 mysqlc/source/mysqlc_statement.hxx                   |    3 ---
 3 files changed, 1 insertion(+), 8 deletions(-)

New commits:
commit b51fe8ddc167dc8673a4e93dfd37e9f925f755ac
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Sep 1 10:32:23 2017 +0200

    Remove unused m_aBatchVector members
    
    Change-Id: I7b7ff3295fa5eb87d113b48dcff0cf3c0b12b4ff
    Reviewed-on: https://gerrit.libreoffice.org/41780
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/connectivity/source/drivers/macab/MacabStatement.hxx b/connectivity/source/drivers/macab/MacabStatement.hxx
index 4beb8765c2d4..3c8187016499 100644
--- a/connectivity/source/drivers/macab/MacabStatement.hxx
+++ b/connectivity/source/drivers/macab/MacabStatement.hxx
@@ -22,7 +22,6 @@
 
 #include "MacabConnection.hxx"
 #include "MacabHeader.hxx"
-#include <vector>
 #include <connectivity/sqliterator.hxx>
 #include <connectivity/sqlparse.hxx>
 #include <com/sun/star/sdbc/XStatement.hpp>
@@ -54,7 +53,6 @@ namespace connectivity
             css::sdbc::SQLWarning               m_aLastWarning;
 
         protected:
-            std::vector< OUString>              m_aBatchVector;
             connectivity::OSQLParser            m_aParser;
             connectivity::OSQLParseTreeIterator m_aSQLIterator;
             connectivity::OSQLParseNode*        m_pParseTree;
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx
index 20d90e28024b..3a082004831a 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -187,12 +187,10 @@ Any SAL_CALL OStatement::queryInterface(const Type & rType)
     return aRet;
 }
 
-void SAL_CALL OStatement::addBatch(const rtl::OUString& sql)
+void SAL_CALL OStatement::addBatch(const rtl::OUString&)
 {
     MutexGuard aGuard(m_aMutex);
     checkDisposed(rBHelper.bDisposed);
-
-    m_aBatchVector.push_back(sql);
 }
 
 Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch()
diff --git a/mysqlc/source/mysqlc_statement.hxx b/mysqlc/source/mysqlc_statement.hxx
index b7357d27ecb7..61d69e824dd7 100644
--- a/mysqlc/source/mysqlc_statement.hxx
+++ b/mysqlc/source/mysqlc_statement.hxx
@@ -34,7 +34,6 @@
 
 #include <cppconn/statement.h>
 #include <cppuhelper/compbase5.hxx>
-#include <vector>
 
 namespace connectivity
 {
@@ -71,8 +70,6 @@ namespace connectivity
             SQLWarning m_aLastWarning;
 
         protected:
-            ::std::vector< rtl::OUString>  m_aBatchVector;
-
             OConnection*            m_pConnection;  // The owning Connection object
 
             sql::Statement          *cppStatement;


More information about the Libreoffice-commits mailing list