diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-26 14:15:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-30 10:34:38 +0200 |
commit | d2df03574023b379ac09b1f71cae9e3ba3ac53e2 (patch) | |
tree | ca17f45377b7b506375b510f1d1733495ea9b170 /connectivity | |
parent | ffddd4d122433329b454f676f21a2b1ce590a1a7 (diff) |
loplugin:unusedfields
Change-Id: Ife94d488ead512abc6d137a0df74298bac67185d
Diffstat (limited to 'connectivity')
10 files changed, 2 insertions, 23 deletions
diff --git a/connectivity/source/commontools/RowFunctionParser.cxx b/connectivity/source/commontools/RowFunctionParser.cxx index ef03cecd3d30..9490b6730844 100644 --- a/connectivity/source/commontools/RowFunctionParser.cxx +++ b/connectivity/source/commontools/RowFunctionParser.cxx @@ -243,13 +243,11 @@ public: class UnaryFunctionFunctor { - const ExpressionFunct meFunct; ParserContextSharedPtr mpContext; public: - UnaryFunctionFunctor( const ExpressionFunct eFunct, const ParserContextSharedPtr& rContext ) : - meFunct( eFunct ), + UnaryFunctionFunctor( const ParserContextSharedPtr& rContext ) : mpContext( rContext ) { } @@ -338,7 +336,7 @@ public: unaryFunction = (COLUMN >> '(' >> integer >> ')' ) - [ UnaryFunctionFunctor( UNARY_FUNC_COLUMN, self.getContext()) ] + [ UnaryFunctionFunctor( self.getContext()) ] ; assignment = diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index c7223c77f573..a82034fc1476 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -91,7 +91,6 @@ OResultSet::OResultSet(OStatement_Base* pStmt,OSQLParseTreeIterator& _aSQLIte ,m_xStatement(*pStmt) ,m_xMetaData(nullptr) ,m_xDBMetaData(pStmt->getOwnConnection()->getMetaData()) - ,m_nTextEncoding(pStmt->getOwnConnection()->getTextEncoding()) ,m_nRowPos(-1) ,m_nFilePos(0) ,m_nLastVisitedPos(-1) @@ -99,7 +98,6 @@ OResultSet::OResultSet(OStatement_Base* pStmt,OSQLParseTreeIterator& _aSQLIte ,m_nColumnCount(0) ,m_bWasNull(false) ,m_bEOF(false) - ,m_bLastRecord(false) ,m_bInserted(false) ,m_bRowUpdated(false) ,m_bRowInserted(false) diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx index 1b868e64f122..39fa8c4ebd57 100644 --- a/connectivity/source/drivers/file/FStatement.cxx +++ b/connectivity/source/drivers/file/FStatement.cxx @@ -69,7 +69,6 @@ OStatement_Base::OStatement_Base(OConnection* _pConnection ) ,m_nFetchDirection(FetchDirection::FORWARD) ,m_nResultSetConcurrency(ResultSetConcurrency::UPDATABLE) ,m_bEscapeProcessing(true) - ,rBHelper(OStatement_BASE::rBHelper) { m_pConnection->acquire(); diff --git a/connectivity/source/drivers/jdbc/JStatement.cxx b/connectivity/source/drivers/jdbc/JStatement.cxx index c767011ddd0c..cc79acb62402 100644 --- a/connectivity/source/drivers/jdbc/JStatement.cxx +++ b/connectivity/source/drivers/jdbc/JStatement.cxx @@ -68,7 +68,6 @@ java_sql_Statement_Base::java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connec ,m_nResultSetConcurrency(ResultSetConcurrency::READ_ONLY) ,m_nResultSetType(ResultSetType::FORWARD_ONLY) ,m_bEscapeProcessing(true) - ,rBHelper(java_sql_Statement_BASE::rBHelper) { m_pConnection->acquire(); } diff --git a/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx b/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx index eac63ff81911..bf11724a9c8c 100644 --- a/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx +++ b/connectivity/source/inc/FDatabaseMetaDataResultSetMetaData.hxx @@ -37,7 +37,6 @@ namespace connectivity class OOO_DLLPUBLIC_DBTOOLS ODatabaseMetaDataResultSetMetaData : public ODatabaseMetaResultSetMetaData_BASE { - TIntVector m_vMapping; // when not every column is needed ::std::map<sal_Int32,connectivity::OColumn> m_mColumns; ::std::map<sal_Int32,connectivity::OColumn>::const_iterator m_mColumnsIter; diff --git a/connectivity/source/inc/RowFunctionParser.hxx b/connectivity/source/inc/RowFunctionParser.hxx index 5eb3c36ccab9..ec4466e2ea3f 100644 --- a/connectivity/source/inc/RowFunctionParser.hxx +++ b/connectivity/source/inc/RowFunctionParser.hxx @@ -31,13 +31,7 @@ namespace connectivity struct OOO_DLLPUBLIC_DBTOOLS RowEquation { - sal_Int32 nOperation; ORowSetValueDecoratorRef nPara[ 3 ]; - - RowEquation() : - nOperation ( 0 ) - { - } }; enum ExpressionFunct diff --git a/connectivity/source/inc/file/FPreparedStatement.hxx b/connectivity/source/inc/file/FPreparedStatement.hxx index f4476e2280a1..a5c832ad09ea 100644 --- a/connectivity/source/inc/file/FPreparedStatement.hxx +++ b/connectivity/source/inc/file/FPreparedStatement.hxx @@ -45,7 +45,6 @@ namespace connectivity // Data attributes - OUString m_aSql; OValueRefRow m_aParameterRow; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData> m_xMetaData; diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx index 9037f6dfd44f..6e202cd9cacd 100644 --- a/connectivity/source/inc/file/FResultSet.hxx +++ b/connectivity/source/inc/file/FResultSet.hxx @@ -69,7 +69,6 @@ namespace connectivity { protected: - ::std::vector<void*> m_aBindVector; ::std::vector<sal_Int32> m_aColMapping; // pos 0 is unused so we don't have to decrement 1 every time ::std::vector<sal_Int32> m_aOrderbyColumnNumber; @@ -110,8 +109,6 @@ namespace connectivity ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess> m_xColsIdx; // table columns - OUString m_aTableRange; - rtl_TextEncoding m_nTextEncoding; sal_Int32 m_nRowPos; sal_Int32 m_nFilePos; sal_Int32 m_nLastVisitedPos; @@ -119,7 +116,6 @@ namespace connectivity sal_Int32 m_nColumnCount; bool m_bWasNull; bool m_bEOF; // after last record - bool m_bLastRecord; bool m_bInserted; // true when moveToInsertRow was called // set to false when cursor moved or cancel bool m_bRowUpdated; diff --git a/connectivity/source/inc/file/FStatement.hxx b/connectivity/source/inc/file/FStatement.hxx index 10074fac0757..94750d2a4ca4 100644 --- a/connectivity/source/inc/file/FStatement.hxx +++ b/connectivity/source/inc/file/FStatement.hxx @@ -97,8 +97,6 @@ namespace connectivity sal_Int32 m_nResultSetConcurrency; bool m_bEscapeProcessing; - ::cppu::OBroadcastHelper& rBHelper; - protected: // initialize the column index map (mapping select columns to table columns) void createColumnMapping(); diff --git a/connectivity/source/inc/java/sql/JStatement.hxx b/connectivity/source/inc/java/sql/JStatement.hxx index bf4c44e0b51d..b8974f7c2daf 100644 --- a/connectivity/source/inc/java/sql/JStatement.hxx +++ b/connectivity/source/inc/java/sql/JStatement.hxx @@ -86,7 +86,6 @@ namespace connectivity sal_Int32 m_nResultSetConcurrency; sal_Int32 m_nResultSetType; bool m_bEscapeProcessing; - ::cppu::OBroadcastHelper& rBHelper; // Static data for the class |