From be94207ecb88a9005ee6624e354d70c9613d7653 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 Jan 2018 15:59:46 +0200 Subject: new loplugin:emptyif Change-Id: I1092115a0ceb3a5e6680a4b724b129f98a892c42 Reviewed-on: https://gerrit.libreoffice.org/48128 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/commontools/TTableHelper.cxx | 5 ----- connectivity/source/commontools/predicateinput.cxx | 7 ------- 2 files changed, 12 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/commontools/TTableHelper.cxx b/connectivity/source/commontools/TTableHelper.cxx index 2124e3366b08..b94ab42d4617 100644 --- a/connectivity/source/commontools/TTableHelper.cxx +++ b/connectivity/source/commontools/TTableHelper.cxx @@ -382,11 +382,6 @@ void OTableHelper::refreshForeignKeys(::std::vector< OUString>& _rNames) const sal_Int32 nDeleteRule = xRow->getInt(11); const OUString sFkName = xRow->getString(12); - if ( pKeyProps.get() ) - { - } - - if ( !sFkName.isEmpty() && !xRow->wasNull() ) { if ( sOldFKName != sFkName ) diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx index ac64032aaa7b..d1cf3b4673dd 100644 --- a/connectivity/source/commontools/predicateinput.cxx +++ b/connectivity/source/commontools/predicateinput.cxx @@ -305,13 +305,6 @@ namespace dbtools OUString sSql = "SELECT * FROM x WHERE " + sField + _rPredicateValue; std::unique_ptr pParseNode( const_cast< OSQLParser& >( m_aParser ).parseTree( sError, sSql, true ) ); nType = DataType::DOUBLE; - if ( pParseNode.get() ) - { - OSQLParseNode* pColumnRef = pParseNode->getByRule(OSQLParseNode::column_ref); - if ( pColumnRef ) - { - } - } } Reference xMeta = m_xConnection->getMetaData(); -- cgit