From 6e38a392c817cef128dff2bd0d7c37de9e3cc57a Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Thu, 4 Feb 2016 21:17:15 +0100 Subject: mork: Clean up unused includes Change-Id: Ideff092f49bd84ce829f3ae142de7ff2d32391ab Reviewed-on: https://gerrit.libreoffice.org/22128 Tested-by: Jenkins Reviewed-by: David Ostrovsky --- connectivity/source/drivers/mork/MCatalog.cxx | 7 ------- connectivity/source/drivers/mork/MColumnAlias.cxx | 6 ------ connectivity/source/drivers/mork/MColumns.cxx | 14 +------------- connectivity/source/drivers/mork/MConnection.cxx | 5 ----- connectivity/source/drivers/mork/MConnection.hxx | 6 ------ .../source/drivers/mork/MDatabaseMetaData.cxx | 13 ++----------- .../source/drivers/mork/MDatabaseMetaData.hxx | 11 ----------- .../source/drivers/mork/MDatabaseMetaDataHelper.cxx | 8 +------- .../source/drivers/mork/MDatabaseMetaDataHelper.hxx | 7 ------- connectivity/source/drivers/mork/MDriver.cxx | 5 ----- connectivity/source/drivers/mork/MDriver.hxx | 15 +-------------- connectivity/source/drivers/mork/MErrorResource.hxx | 2 -- .../source/drivers/mork/MPreparedStatement.cxx | 11 ----------- .../source/drivers/mork/MPreparedStatement.hxx | 4 ---- connectivity/source/drivers/mork/MQueryHelper.cxx | 2 -- connectivity/source/drivers/mork/MQueryHelper.hxx | 6 ------ connectivity/source/drivers/mork/MResultSet.cxx | 12 ------------ connectivity/source/drivers/mork/MStatement.cxx | 15 --------------- connectivity/source/drivers/mork/MStatement.hxx | 13 ------------- connectivity/source/drivers/mork/MTable.cxx | 20 -------------------- connectivity/source/drivers/mork/MTable.hxx | 1 - connectivity/source/drivers/mork/MTables.cxx | 17 ----------------- 22 files changed, 5 insertions(+), 195 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/mork/MCatalog.cxx b/connectivity/source/drivers/mork/MCatalog.cxx index 5ff0755dfabf..27bd3456528d 100644 --- a/connectivity/source/drivers/mork/MCatalog.cxx +++ b/connectivity/source/drivers/mork/MCatalog.cxx @@ -20,19 +20,12 @@ #include "MCatalog.hxx" #include "MConnection.hxx" #include "MTables.hxx" -#include -#include -#include using namespace connectivity::mork; using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::beans; -using namespace ::com::sun::star::sdbcx; using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::container; -using namespace ::com::sun::star::lang; -using namespace ::cppu; OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon) diff --git a/connectivity/source/drivers/mork/MColumnAlias.cxx b/connectivity/source/drivers/mork/MColumnAlias.cxx index 0ad8a3dc8685..28c76a9ab65c 100644 --- a/connectivity/source/drivers/mork/MColumnAlias.cxx +++ b/connectivity/source/drivers/mork/MColumnAlias.cxx @@ -17,12 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include "MColumnAlias.hxx" -#include "MConnection.hxx" #include -#include #include #include @@ -30,11 +27,8 @@ #include #include -using namespace ::connectivity; using namespace ::connectivity::mork; using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::lang; -using namespace ::com::sun::star::beans; using namespace ::com::sun::star::container; diff --git a/connectivity/source/drivers/mork/MColumns.cxx b/connectivity/source/drivers/mork/MColumns.cxx index 4be299c1cdb7..8691376d1d70 100644 --- a/connectivity/source/drivers/mork/MColumns.cxx +++ b/connectivity/source/drivers/mork/MColumns.cxx @@ -19,26 +19,14 @@ #include "MColumns.hxx" #include -#include -#include -#include -#include -#include "MTable.hxx" -#include "MTables.hxx" -#include "MCatalog.hxx" -#include #include -using namespace ::comphelper; - using namespace connectivity::mork; using namespace connectivity::sdbcx; using namespace connectivity; using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::beans; using namespace ::com::sun::star::sdbc; -using namespace ::com::sun::star::container; -using namespace ::com::sun::star::lang; + sdbcx::ObjectType OColumns::createObject(const OUString& _rName) { diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index f35bf5cbeaad..d8c681d207c2 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -14,18 +14,13 @@ #include "MPreparedStatement.hxx" #include "MorkParser.hxx" -#include #include -#include #include "resource/mork_res.hrc" #include "resource/common_res.hrc" -#include -#include #include -#include #include using namespace dbtools; diff --git a/connectivity/source/drivers/mork/MConnection.hxx b/connectivity/source/drivers/mork/MConnection.hxx index 007302fb2053..3654b6926085 100644 --- a/connectivity/source/drivers/mork/MConnection.hxx +++ b/connectivity/source/drivers/mork/MConnection.hxx @@ -10,18 +10,12 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MCONNECTION_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MCONNECTION_HXX -#include - #include #include "TConnection.hxx" #include "MColumnAlias.hxx" -#include -#include #include -#include - // do we want here namespace too? class MorkParser; diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx index 0d9076421ba3..f8b60da0f32d 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx @@ -7,31 +7,22 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "MConnection.hxx" #include "MDatabaseMetaData.hxx" -#include "FDatabaseMetaDataResultSet.hxx" -#include -#include -#include + #include -#include -#include #include #include "resource/common_res.hrc" #include #include "MDatabaseMetaDataHelper.hxx" -#include "MorkParser.hxx" #include -using namespace dbtools; using namespace connectivity::mork; using namespace connectivity; using namespace com::sun::star::uno; -using namespace com::sun::star::lang; -using namespace com::sun::star::beans; using namespace com::sun::star::sdbc; -using namespace com::sun::star::sdbcx; namespace connectivity diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.hxx b/connectivity/source/drivers/mork/MDatabaseMetaData.hxx index b1f08a647c5c..541b522f8e27 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaData.hxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaData.hxx @@ -10,19 +10,8 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX -#include -#include - -#include "MConnection.hxx" -#include "MDatabaseMetaDataHelper.hxx" #include "TDatabaseMetaDataBase.hxx" -#include -#include -#include - -#include - namespace connectivity { namespace mork diff --git a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx index 51f01c32f41a..e5d34d73ed42 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx @@ -7,18 +7,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "MConnection.hxx" #include "MDatabaseMetaDataHelper.hxx" -#include "FDatabaseMetaDataResultSet.hxx" -#include -#include -#include -#include -#include // do we need it? static ::osl::Mutex m_aMetaMutex; -#include #include #include #include diff --git a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.hxx b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.hxx index 0d6ca812fd55..591e4bb066f2 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.hxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.hxx @@ -10,14 +10,7 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATAHELPER_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATAHELPER_HXX -#include -#include #include "FDatabaseMetaDataResultSet.hxx" -#include "MErrorResource.hxx" - -#include "MConnection.hxx" -#include - namespace connectivity { diff --git a/connectivity/source/drivers/mork/MDriver.cxx b/connectivity/source/drivers/mork/MDriver.cxx index dec0d42fe8a5..85a17ec77542 100644 --- a/connectivity/source/drivers/mork/MDriver.cxx +++ b/connectivity/source/drivers/mork/MDriver.cxx @@ -7,15 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include #include "MDriver.hxx" #include "MConnection.hxx" #include -#include - -#include "resource/mork_res.hrc" -#include "resource/common_res.hrc" using namespace connectivity::mork; diff --git a/connectivity/source/drivers/mork/MDriver.hxx b/connectivity/source/drivers/mork/MDriver.hxx index b631c4412d47..756495676823 100644 --- a/connectivity/source/drivers/mork/MDriver.hxx +++ b/connectivity/source/drivers/mork/MDriver.hxx @@ -10,25 +10,12 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDRIVER_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDRIVER_HXX -#include - -#include - -#include #include #include -#include -#include + #include -#include -#include -#include -#include #include #include -#include -#include -#include #define MORK_DRIVER_IMPL_NAME "com.sun.star.comp.sdbc.MorkDriver" diff --git a/connectivity/source/drivers/mork/MErrorResource.hxx b/connectivity/source/drivers/mork/MErrorResource.hxx index 6b142ece3a62..c84c9b72d5d9 100644 --- a/connectivity/source/drivers/mork/MErrorResource.hxx +++ b/connectivity/source/drivers/mork/MErrorResource.hxx @@ -20,8 +20,6 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MERRORRESOURCE_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MERRORRESOURCE_HXX -#include - namespace connectivity { namespace mork diff --git a/connectivity/source/drivers/mork/MPreparedStatement.cxx b/connectivity/source/drivers/mork/MPreparedStatement.cxx index f138c2bbbb84..99b8d7ff894b 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.cxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.cxx @@ -7,17 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include #include #include "MPreparedStatement.hxx" -#include #include "MResultSetMetaData.hxx" -#include -#include -#include -#include #include -#include #include #if OSL_DEBUG_LEVEL > 0 @@ -30,12 +23,8 @@ using namespace ::comphelper; using namespace connectivity; using namespace connectivity::mork; using namespace com::sun::star::uno; -using namespace com::sun::star::lang; -using namespace com::sun::star::beans; using namespace com::sun::star::sdbc; -using namespace com::sun::star::sdbcx; using namespace com::sun::star::container; -using namespace com::sun::star::io; using namespace com::sun::star::util; IMPLEMENT_SERVICE_INFO(OPreparedStatement,"com.sun.star.sdbcx.mork.PreparedStatement","com.sun.star.sdbc.PreparedStatement"); diff --git a/connectivity/source/drivers/mork/MPreparedStatement.hxx b/connectivity/source/drivers/mork/MPreparedStatement.hxx index 305977b36c11..2bcfd9d15c59 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.hxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.hxx @@ -21,11 +21,7 @@ #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MPREPAREDSTATEMENT_HXX #include "MResultSet.hxx" -#include "MStatement.hxx" -#include #include -#include -#include #include #include diff --git a/connectivity/source/drivers/mork/MQueryHelper.cxx b/connectivity/source/drivers/mork/MQueryHelper.cxx index a03e3501fbc9..98f69da2e889 100644 --- a/connectivity/source/drivers/mork/MQueryHelper.cxx +++ b/connectivity/source/drivers/mork/MQueryHelper.cxx @@ -31,9 +31,7 @@ #include #include "resource/mork_res.hrc" -#include "resource/common_res.hrc" -#include #include using namespace connectivity::mork; diff --git a/connectivity/source/drivers/mork/MQueryHelper.hxx b/connectivity/source/drivers/mork/MQueryHelper.hxx index 31e83b95e781..f8621bcf00e9 100644 --- a/connectivity/source/drivers/mork/MQueryHelper.hxx +++ b/connectivity/source/drivers/mork/MQueryHelper.hxx @@ -20,14 +20,8 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MQUERYHELPER_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MQUERYHELPER_HXX -#include -#include -#include -#include -#include #include #include "MErrorResource.hxx" -#include namespace connectivity { diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx index bb6817184874..2488db761c3d 100644 --- a/connectivity/source/drivers/mork/MResultSet.cxx +++ b/connectivity/source/drivers/mork/MResultSet.cxx @@ -17,24 +17,12 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include #include -#include -#include #include -#include -#include #include #include #include "MResultSet.hxx" diff --git a/connectivity/source/drivers/mork/MStatement.cxx b/connectivity/source/drivers/mork/MStatement.cxx index 019175ce88db..936bd21ed535 100644 --- a/connectivity/source/drivers/mork/MStatement.cxx +++ b/connectivity/source/drivers/mork/MStatement.cxx @@ -18,32 +18,17 @@ */ -#include -#include -#include -#include #include -#include -#include -#include -#include -#include #include -#include #include -#include -#include #include -#include #include #include "MDriver.hxx" #include "MStatement.hxx" #include "sqlbison.hxx" -#include "MConnection.hxx" #include "MResultSet.hxx" -#include "MDatabaseMetaData.hxx" #include "resource/mork_res.hrc" #include "resource/common_res.hrc" diff --git a/connectivity/source/drivers/mork/MStatement.hxx b/connectivity/source/drivers/mork/MStatement.hxx index abe436069687..aa52471715c2 100644 --- a/connectivity/source/drivers/mork/MStatement.hxx +++ b/connectivity/source/drivers/mork/MStatement.hxx @@ -20,23 +20,10 @@ #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MSTATEMENT_HXX #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MSTATEMENT_HXX -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include #include #include -#include #include "TSortIndex.hxx" -#include "MConnection.hxx" #include "MTable.hxx" #include diff --git a/connectivity/source/drivers/mork/MTable.cxx b/connectivity/source/drivers/mork/MTable.cxx index 55873de64784..38ec30627626 100644 --- a/connectivity/source/drivers/mork/MTable.cxx +++ b/connectivity/source/drivers/mork/MTable.cxx @@ -18,33 +18,13 @@ */ #include "MTable.hxx" -#include "MTables.hxx" #include "MColumns.hxx" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include "MCatalog.hxx" -using namespace ::comphelper; using namespace connectivity::mork; using namespace connectivity; -using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::beans; -using namespace ::com::sun::star::sdbcx; -using namespace ::com::sun::star::sdbc; -using namespace ::com::sun::star::container; -using namespace ::com::sun::star::lang; OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection, diff --git a/connectivity/source/drivers/mork/MTable.hxx b/connectivity/source/drivers/mork/MTable.hxx index 3a343381d933..4f021027d116 100644 --- a/connectivity/source/drivers/mork/MTable.hxx +++ b/connectivity/source/drivers/mork/MTable.hxx @@ -21,7 +21,6 @@ #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MTABLE_HXX #include -#include #include "MConnection.hxx" namespace connectivity diff --git a/connectivity/source/drivers/mork/MTables.cxx b/connectivity/source/drivers/mork/MTables.cxx index 310323011e08..a5164e426fe9 100644 --- a/connectivity/source/drivers/mork/MTables.cxx +++ b/connectivity/source/drivers/mork/MTables.cxx @@ -19,30 +19,13 @@ #include "MTables.hxx" #include "MTable.hxx" -#include -#include -#include -#include -#include #include "MCatalog.hxx" -#include "MConnection.hxx" -#include -#include -#include -#include #include -using namespace ::comphelper; using namespace connectivity; -using namespace ::cppu; using namespace connectivity::mork; using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::beans; -using namespace ::com::sun::star::sdbcx; using namespace ::com::sun::star::sdbc; -using namespace ::com::sun::star::container; -using namespace ::com::sun::star::lang; -using namespace dbtools; sdbcx::ObjectType OTables::createObject(const OUString& _rName) { -- cgit