diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-03 06:01:17 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-03 11:48:02 +0100 |
commit | 919e27746650f223699a97f8f3d4922101d6d739 (patch) | |
tree | 33909252ee42540d05ce94998354fd221c247a57 /connectivity | |
parent | Translate German DBG_ASSERT - AppFileName should be set to something (diff) | |
download | core-919e27746650f223699a97f8f3d4922101d6d739.tar.gz core-919e27746650f223699a97f8f3d4922101d6d739.zip |
loplugin: unused variables and commented code
Change-Id: I01f1f1d112767b576d7cfc6e25fe95385de2c0cf
Diffstat (limited to 'connectivity')
9 files changed, 4 insertions, 15 deletions
diff --git a/connectivity/source/commontools/TColumnsHelper.cxx b/connectivity/source/commontools/TColumnsHelper.cxx index ad725c4f1e64..1f2a30a7b308 100644 --- a/connectivity/source/commontools/TColumnsHelper.cxx +++ b/connectivity/source/commontools/TColumnsHelper.cxx @@ -178,7 +178,6 @@ sdbcx::ObjectType OColumnsHelper::appendObject( const ::rtl::OUString& _rForName Reference<XDatabaseMetaData> xMetaData = m_pTable->getConnection()->getMetaData(); ::rtl::OUString aSql( RTL_CONSTASCII_USTRINGPARAM( "ALTER TABLE " )); - ::rtl::OUString aQuote = xMetaData->getIdentifierQuoteString( ); aSql += ::dbtools::composeTableName( xMetaData, m_pTable, ::dbtools::eInTableDefinitions, false, false, true ); aSql += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" ADD ")); diff --git a/connectivity/source/commontools/TTableHelper.cxx b/connectivity/source/commontools/TTableHelper.cxx index bf4efb061fec..7a85113ad5d0 100644 --- a/connectivity/source/commontools/TTableHelper.cxx +++ b/connectivity/source/commontools/TTableHelper.cxx @@ -505,7 +505,6 @@ void SAL_CALL OTableHelper::rename( const ::rtl::OUString& newName ) throw(SQLEx else { ::rtl::OUString sSql = getRenameStart(); - ::rtl::OUString sQuote = getMetaData()->getIdentifierQuoteString( ); ::rtl::OUString sCatalog,sSchema,sTable; ::dbtools::qualifiedNameComponents(getMetaData(),newName,sCatalog,sSchema,sTable,::dbtools::eInDataManipulation); diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index 1b6124a164ca..f671e6b454c9 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -280,7 +280,6 @@ namespace if(!xColumns.is() || !xColumns->getCount()) ::dbtools::throwFunctionSequenceException(_xConnection); - const ::rtl::OUString sQuote = xMetaData->getIdentifierQuoteString(); aSql.append(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" PRIMARY KEY "))); aSql.append(generateColumnNames(xColumns,xMetaData)); } @@ -291,7 +290,6 @@ namespace if(!xColumns.is() || !xColumns->getCount()) ::dbtools::throwFunctionSequenceException(_xConnection); - const ::rtl::OUString sQuote = xMetaData->getIdentifierQuoteString(); aSql.append(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" UNIQUE "))); aSql.append(generateColumnNames(xColumns,xMetaData)); } diff --git a/connectivity/source/drivers/file/fcomp.cxx b/connectivity/source/drivers/file/fcomp.cxx index e63969ac1132..5419402bf76e 100644 --- a/connectivity/source/drivers/file/fcomp.cxx +++ b/connectivity/source/drivers/file/fcomp.cxx @@ -435,7 +435,6 @@ OOperand* OPredicateCompiler::execute_Operand(OSQLParseNode* pPredicateNode) thr } else if (pPredicateNode->count() == 3) { - ::rtl::OUString aTableName = pPredicateNode->getChild(0)->getTokenValue(); if(SQL_ISRULE(pPredicateNode->getChild(2),column_val)) aColumnName = pPredicateNode->getChild(2)->getChild(0)->getTokenValue(); else diff --git a/connectivity/source/drivers/hsqldb/HTable.cxx b/connectivity/source/drivers/hsqldb/HTable.cxx index 586922d72115..5bb035620b59 100644 --- a/connectivity/source/drivers/hsqldb/HTable.cxx +++ b/connectivity/source/drivers/hsqldb/HTable.cxx @@ -318,7 +318,6 @@ void OHSQLTable::dropDefaultValue(const ::rtl::OUString& _rColName) ::rtl::OUString OHSQLTable::getAlterTableColumnPart() { ::rtl::OUString sSql( "ALTER TABLE " ); - const ::rtl::OUString sQuote = getMetaData()->getIdentifierQuoteString( ); ::rtl::OUString sComposedName( ::dbtools::composeTableName( getMetaData(), m_CatalogName, m_SchemaName, m_Name, sal_True, ::dbtools::eInTableDefinitions ) ); sSql += sComposedName; @@ -387,8 +386,6 @@ void SAL_CALL OHSQLTable::rename( const ::rtl::OUString& newName ) throw(SQLExce else sSql += ::rtl::OUString(" TABLE "); - ::rtl::OUString sQuote = getMetaData()->getIdentifierQuoteString( ); - ::rtl::OUString sCatalog,sSchema,sTable; ::dbtools::qualifiedNameComponents(getMetaData(),newName,sCatalog,sSchema,sTable,::dbtools::eInDataManipulation); diff --git a/connectivity/source/drivers/hsqldb/HViews.cxx b/connectivity/source/drivers/hsqldb/HViews.cxx index fde445278e6e..1da4d9a32336 100644 --- a/connectivity/source/drivers/hsqldb/HViews.cxx +++ b/connectivity/source/drivers/hsqldb/HViews.cxx @@ -132,7 +132,6 @@ void HViews::createView( const Reference< XPropertySet >& descriptor ) Reference<XConnection> xConnection = static_cast<OHCatalog&>(m_rParent).getConnection(); ::rtl::OUString aSql( "CREATE VIEW " ); - ::rtl::OUString aQuote = xConnection->getMetaData()->getIdentifierQuoteString( ); ::rtl::OUString sCommand; aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true ); diff --git a/connectivity/source/drivers/mysql/YTable.cxx b/connectivity/source/drivers/mysql/YTable.cxx index 14c2334c87b2..9b8f38d83e53 100644 --- a/connectivity/source/drivers/mysql/YTable.cxx +++ b/connectivity/source/drivers/mysql/YTable.cxx @@ -343,7 +343,6 @@ void OMySQLTable::dropDefaultValue(const ::rtl::OUString& _rColName) ::rtl::OUString OMySQLTable::getAlterTableColumnPart() { ::rtl::OUString sSql( "ALTER TABLE " ); - const ::rtl::OUString sQuote = getMetaData()->getIdentifierQuoteString( ); ::rtl::OUString sComposedName( ::dbtools::composeTableName( getMetaData(), m_CatalogName, m_SchemaName, m_Name, sal_True, ::dbtools::eInTableDefinitions ) ); diff --git a/connectivity/source/drivers/mysql/YViews.cxx b/connectivity/source/drivers/mysql/YViews.cxx index eb1a8d7f2103..765b6d745739 100644 --- a/connectivity/source/drivers/mysql/YViews.cxx +++ b/connectivity/source/drivers/mysql/YViews.cxx @@ -126,7 +126,6 @@ void OViews::createView( const Reference< XPropertySet >& descriptor ) Reference<XConnection> xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection(); ::rtl::OUString aSql( "CREATE VIEW " ); - ::rtl::OUString aQuote = xConnection->getMetaData()->getIdentifierQuoteString( ); ::rtl::OUString sCommand; aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true ); diff --git a/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx index 642aba6cd7d0..9de0b04f88da 100644 --- a/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx +++ b/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx @@ -1088,7 +1088,7 @@ void ODatabaseMetaDataResultSet::openProcedures(const Any& catalog, const ::rtl: else pSchemaPat = NULL; - ::rtl::OString aPKQ,aPKO,aPKN,aCOL; + ::rtl::OString aPKQ,aPKO,aPKN; if ( catalog.hasValue() ) aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding); @@ -1132,7 +1132,7 @@ void ODatabaseMetaDataResultSet::openSpecialColumns(sal_Bool _bRowVer,const Any& else pSchemaPat = NULL; - ::rtl::OString aPKQ,aPKO,aPKN,aCOL; + ::rtl::OString aPKQ,aPKO,aPKN; if ( catalog.hasValue() ) aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding); aPKO = ::rtl::OUStringToOString(schema,m_nTextEncoding); @@ -1170,7 +1170,7 @@ void ODatabaseMetaDataResultSet::openForeignKeys( const Any& catalog, const ::rt const Any& catalog2, const ::rtl::OUString* schema2, const ::rtl::OUString* table2) throw(SQLException, RuntimeException) { - ::rtl::OString aPKQ,aPKO,aPKN, aFKQ, aFKO, aFKN; + ::rtl::OString aPKQ, aPKN, aFKQ, aFKO, aFKN; if ( catalog.hasValue() ) aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding); if ( catalog2.hasValue() ) @@ -1219,7 +1219,7 @@ void ODatabaseMetaDataResultSet::openPrimaryKeys(const Any& catalog, const ::rtl else pSchemaPat = NULL; - ::rtl::OString aPKQ,aPKO,aPKN,aCOL; + ::rtl::OString aPKQ,aPKO,aPKN; if ( catalog.hasValue() ) aPKQ = ::rtl::OUStringToOString(comphelper::getString(catalog),m_nTextEncoding); |