diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-17 19:20:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-18 07:25:24 +0000 |
commit | 150ac9cf05ed9da6a2af5bc3f820280fd853e519 (patch) | |
tree | 10a73ee6974c2ee67ee63a09e533081ce519685f /dbaccess/source/ui/misc | |
parent | 0fa6c88007f61176ac707cb5d77fd35cf1521123 (diff) |
clean-up: unused using declarations and includes
Searched source for using declarations.
Checked if those symbols reappear in the source file,
even in comments or dead code but not in #include statements.
If they don't reappear, remove the declaration.
Remove includes whose symbol got removed.
Change-Id: Ibb77163f63c1120070e9518e3dc0a78c6c59fab0
Reviewed-on: https://gerrit.libreoffice.org/24148
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/ui/misc')
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/controllerframe.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/datasourceconnector.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/dbaundomanager.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/defaultobjectnamecheck.cxx | 5 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/imageprovider.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/propertystorage.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/singledoccontroller.cxx | 4 |
10 files changed, 0 insertions, 23 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index b9780c6dbb68..98a3312919be 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -73,7 +73,6 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::sdbcx; using namespace ::com::sun::star::awt; using namespace ::com::sun::star::util; -using ::com::sun::star::frame::XModel; const static char sMyBegComment[] = "<!-- "; const static char sMyEndComment[] = " -->"; diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index 0079841a5540..c618a1bcae50 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -65,7 +65,6 @@ #include <com/sun/star/awt/FontWeight.hpp> #include <com/sun/star/awt/FontRelief.hpp> #include <com/sun/star/awt/FontWidth.hpp> -#include <com/sun/star/frame/XModel.hpp> #include "TypeInfo.hxx" #include "FieldDescriptions.hxx" #include <comphelper/processfactory.hxx> @@ -129,7 +128,6 @@ using namespace ::svt; using ::com::sun::star::ucb::InteractiveIOException; using ::com::sun::star::ucb::IOErrorCode_NO_FILE; using ::com::sun::star::ucb::IOErrorCode_NOT_EXISTING; -using ::com::sun::star::frame::XModel; SQLExceptionInfo createConnection( const OUString& _rsDataSourceName, const Reference< css::container::XNameAccess >& _xDatabaseContext, diff --git a/dbaccess/source/ui/misc/controllerframe.cxx b/dbaccess/source/ui/misc/controllerframe.cxx index a2899817c4a4..a69e3abace30 100644 --- a/dbaccess/source/ui/misc/controllerframe.cxx +++ b/dbaccess/source/ui/misc/controllerframe.cxx @@ -20,7 +20,6 @@ #include <dbaccess/controllerframe.hxx> #include <dbaccess/IController.hxx> -#include <com/sun/star/sdb/XOfficeDatabaseDocument.hpp> #include <com/sun/star/awt/XTopWindow.hpp> #include <com/sun/star/awt/XWindow2.hpp> #include <com/sun/star/lang/DisposedException.hpp> @@ -54,8 +53,6 @@ namespace dbaui using ::com::sun::star::frame::XModel; using ::com::sun::star::frame::XController; using ::com::sun::star::frame::XController2; - using ::com::sun::star::frame::XFramesSupplier; - using ::com::sun::star::sdb::XOfficeDatabaseDocument; using ::com::sun::star::awt::XTopWindow; using ::com::sun::star::awt::XTopWindowListener; using ::com::sun::star::awt::XWindow2; diff --git a/dbaccess/source/ui/misc/datasourceconnector.cxx b/dbaccess/source/ui/misc/datasourceconnector.cxx index 830445e65a21..174e92c72d86 100644 --- a/dbaccess/source/ui/misc/datasourceconnector.cxx +++ b/dbaccess/source/ui/misc/datasourceconnector.cxx @@ -54,7 +54,6 @@ namespace dbaui using namespace ::com::sun::star::container; using namespace ::com::sun::star::frame; using namespace ::dbtools; - using ::svt::OFileNotation; // ODatasourceConnector ODatasourceConnector::ODatasourceConnector(const Reference< XComponentContext >& _rxContext, vcl::Window* _pMessageParent) diff --git a/dbaccess/source/ui/misc/dbaundomanager.cxx b/dbaccess/source/ui/misc/dbaundomanager.cxx index 572be847d3a7..0f188150aee0 100644 --- a/dbaccess/source/ui/misc/dbaundomanager.cxx +++ b/dbaccess/source/ui/misc/dbaundomanager.cxx @@ -30,7 +30,6 @@ namespace dbaui using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; - using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Sequence; using ::com::sun::star::document::XUndoManager; diff --git a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx index 3fb396a20587..1d00252ebc0e 100644 --- a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx +++ b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx @@ -54,7 +54,6 @@ namespace dbaui using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Reference; using ::com::sun::star::beans::XPropertySet; - using ::com::sun::star::lang::XMultiServiceFactory; using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Type; diff --git a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx index acce7c928b7e..4ea7d2024b82 100644 --- a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx +++ b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx @@ -24,8 +24,6 @@ #include "moduledbu.hxx" #include <com/sun/star/lang/IllegalArgumentException.hpp> -#include <com/sun/star/sdbcx/XTablesSupplier.hpp> -#include <com/sun/star/sdb/XQueriesSupplier.hpp> #include <com/sun/star/sdb/CommandType.hpp> #include <com/sun/star/sdb/tools/XConnectionTools.hpp> @@ -44,14 +42,11 @@ namespace dbaui { using ::com::sun::star::uno::Reference; - using ::com::sun::star::container::XNameAccess; using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::container::XHierarchicalNameAccess; using ::com::sun::star::sdbc::SQLException; using ::com::sun::star::uno::Exception; using ::com::sun::star::sdbc::XConnection; - using ::com::sun::star::sdbcx::XTablesSupplier; - using ::com::sun::star::sdb::XQueriesSupplier; using ::com::sun::star::sdb::tools::XObjectNames; using ::com::sun::star::sdb::tools::XConnectionTools; using ::com::sun::star::uno::UNO_QUERY; diff --git a/dbaccess/source/ui/misc/imageprovider.cxx b/dbaccess/source/ui/misc/imageprovider.cxx index cd2bc451c16b..ba570bfa62ab 100644 --- a/dbaccess/source/ui/misc/imageprovider.cxx +++ b/dbaccess/source/ui/misc/imageprovider.cxx @@ -22,7 +22,6 @@ #include "moduledbu.hxx" #include "dbustrings.hrc" -#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/graphic/XGraphic.hpp> #include <com/sun/star/graphic/GraphicColorMode.hpp> #include <com/sun/star/sdb/application/XTableUIProvider.hpp> @@ -37,7 +36,6 @@ namespace dbaui using ::com::sun::star::sdbc::XConnection; using ::com::sun::star::uno::Exception; using ::com::sun::star::container::XNameAccess; - using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::graphic::XGraphic; using ::com::sun::star::sdb::application::XTableUIProvider; using ::com::sun::star::uno::UNO_QUERY; diff --git a/dbaccess/source/ui/misc/propertystorage.cxx b/dbaccess/source/ui/misc/propertystorage.cxx index aabc811f4e1e..c3234a0c28e6 100644 --- a/dbaccess/source/ui/misc/propertystorage.cxx +++ b/dbaccess/source/ui/misc/propertystorage.cxx @@ -31,9 +31,6 @@ namespace dbaui { - using ::com::sun::star::uno::XInterface; - using ::com::sun::star::uno::Exception; - using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Any; // helper diff --git a/dbaccess/source/ui/misc/singledoccontroller.cxx b/dbaccess/source/ui/misc/singledoccontroller.cxx index 60fae518374d..4487b9d2b369 100644 --- a/dbaccess/source/ui/misc/singledoccontroller.cxx +++ b/dbaccess/source/ui/misc/singledoccontroller.cxx @@ -26,20 +26,16 @@ #include "moduledbu.hxx" #include <svl/undo.hxx> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <osl/diagnose.h> namespace dbaui { using ::com::sun::star::uno::Reference; - using ::com::sun::star::uno::XInterface; - using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::XComponentContext; using ::com::sun::star::document::XUndoManager; - using ::com::sun::star::lang::XMultiServiceFactory; using ::com::sun::star::beans::PropertyValue; using ::com::sun::star::lang::EventObject; |