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 /forms | |
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 'forms')
-rw-r--r-- | forms/source/component/Pattern.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/cachedrowset.cxx | 4 | ||||
-rw-r--r-- | forms/source/helper/commandimageprovider.cxx | 2 | ||||
-rw-r--r-- | forms/source/helper/resettable.cxx | 3 | ||||
-rw-r--r-- | forms/source/runtime/formoperations.cxx | 1 | ||||
-rw-r--r-- | forms/source/xforms/binding.cxx | 6 | ||||
-rw-r--r-- | forms/source/xforms/computedexpression.cxx | 12 | ||||
-rw-r--r-- | forms/source/xforms/model.cxx | 6 | ||||
-rw-r--r-- | forms/source/xforms/model_ui.cxx | 4 | ||||
-rw-r--r-- | forms/source/xforms/pathexpression.cxx | 11 | ||||
-rw-r--r-- | forms/source/xforms/submission.cxx | 5 | ||||
-rw-r--r-- | forms/source/xforms/submission/serialization_app_xml.cxx | 3 | ||||
-rw-r--r-- | forms/source/xforms/unohelper.cxx | 4 | ||||
-rw-r--r-- | forms/source/xforms/xpathlib/extension.cxx | 1 |
14 files changed, 0 insertions, 64 deletions
diff --git a/forms/source/component/Pattern.cxx b/forms/source/component/Pattern.cxx index 9f01b4217343..e0d54db2844d 100644 --- a/forms/source/component/Pattern.cxx +++ b/forms/source/component/Pattern.cxx @@ -21,12 +21,10 @@ #include "comphelper/processfactory.hxx" using ::com::sun::star::uno::Reference; -using ::com::sun::star::lang::XMultiServiceFactory; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Type; using ::com::sun::star::uno::XComponentContext; using ::com::sun::star::beans::Property; -using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::XInterface; using ::com::sun::star::uno::Any; using ::com::sun::star::uno::makeAny; diff --git a/forms/source/component/cachedrowset.cxx b/forms/source/component/cachedrowset.cxx index 7e530f95d210..b62075165b23 100644 --- a/forms/source/component/cachedrowset.cxx +++ b/forms/source/component/cachedrowset.cxx @@ -22,7 +22,6 @@ #include "services.hxx" #include "frm_strings.hxx" -#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/sdb/XQueriesSupplier.hpp> #include <com/sun/star/sdbc/ResultSetType.hpp> @@ -38,10 +37,7 @@ namespace frm using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::uno::UNO_SET_THROW; using ::com::sun::star::uno::Exception; - using ::com::sun::star::uno::RuntimeException; - using ::com::sun::star::uno::XComponentContext; using ::com::sun::star::sdbc::XConnection; - using ::com::sun::star::lang::XComponent; using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::uno::makeAny; using ::com::sun::star::sdbc::SQLException; diff --git a/forms/source/helper/commandimageprovider.cxx b/forms/source/helper/commandimageprovider.cxx index 25a082a18f6b..e051eb31436b 100644 --- a/forms/source/helper/commandimageprovider.cxx +++ b/forms/source/helper/commandimageprovider.cxx @@ -34,12 +34,10 @@ namespace frm using ::com::sun::star::uno::Reference; - using ::com::sun::star::uno::XInterface; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::uno::UNO_SET_THROW; 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::frame::XModel; diff --git a/forms/source/helper/resettable.cxx b/forms/source/helper/resettable.cxx index 71d729f34686..415cbf68859d 100644 --- a/forms/source/helper/resettable.cxx +++ b/forms/source/helper/resettable.cxx @@ -27,9 +27,6 @@ namespace frm 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::form::XResetListener; using ::com::sun::star::lang::EventObject; diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index e0f936726ea6..6bf77db9e54f 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -107,7 +107,6 @@ namespace frm using ::com::sun::star::beans::XMultiPropertySet; using ::com::sun::star::uno::makeAny; using ::com::sun::star::lang::WrappedTargetException; - using ::com::sun::star::beans::PropertyValue; using ::com::sun::star::ui::dialogs::XExecutableDialog; using ::com::sun::star::beans::NamedValue; using ::com::sun::star::util::XRefreshable; diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index 19d89662d11a..ee7cd0018eb9 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -48,7 +48,6 @@ #include <com/sun/star/xml/dom/events/XDocumentEvent.hpp> #include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> -#include <com/sun/star/container/XSet.hpp> #include <com/sun/star/container/XNameContainer.hpp> #include <comphelper/propertysetinfo.hxx> @@ -64,20 +63,15 @@ using xforms::MIP; using xforms::Model; using xforms::getResource; using xforms::EvaluationContext; -using com::sun::star::beans::PropertyVetoException; -using com::sun::star::beans::UnknownPropertyException; using com::sun::star::beans::XPropertySet; -using com::sun::star::container::XSet; using com::sun::star::container::XNameAccess; using com::sun::star::form::binding::IncompatibleTypesException; using com::sun::star::form::binding::InvalidBindingStateException; using com::sun::star::form::binding::XValueBinding; using com::sun::star::lang::EventObject; -using com::sun::star::lang::IllegalArgumentException; using com::sun::star::lang::IndexOutOfBoundsException; using com::sun::star::lang::NoSupportException; using com::sun::star::lang::NullPointerException; -using com::sun::star::lang::WrappedTargetException; using com::sun::star::lang::XUnoTunnel; using com::sun::star::uno::Any; using com::sun::star::uno::Reference; diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx index 03aae7b9ea92..68975c26e028 100644 --- a/forms/source/xforms/computedexpression.cxx +++ b/forms/source/xforms/computedexpression.cxx @@ -23,16 +23,10 @@ #include "evaluationcontext.hxx" #include "NameContainer.hxx" -#include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/xml/dom/NodeType.hpp> -#include <com/sun/star/xml/dom/XNode.hpp> #include <com/sun/star/xml/xpath/XPathAPI.hpp> -#include <com/sun/star/xml/xpath/XXPathObject.hpp> #include <com/sun/star/xml/xpath/XPathExtension.hpp> -#include <com/sun/star/beans/NamedValue.hpp> -#include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/util/SearchAlgorithms2.hpp> #include <osl/diagnose.h> @@ -40,17 +34,11 @@ #include <unotools/textsearch.hxx> #include <comphelper/processfactory.hxx> -using com::sun::star::beans::NamedValue; using namespace com::sun::star::uno; -using com::sun::star::lang::XInitialization; -using com::sun::star::lang::XMultiServiceFactory; -using com::sun::star::xml::dom::XNode; -using com::sun::star::container::XNameContainer; using com::sun::star::xml::xpath::XPathAPI; using com::sun::star::xml::xpath::XXPathAPI; using com::sun::star::xml::xpath::XPathExtension; using com::sun::star::xml::xpath::XXPathExtension; -using com::sun::star::xml::xpath::XXPathObject; using com::sun::star::xml::xpath::XPathObjectType_XPATH_UNDEFINED; using com::sun::star::util::SearchOptions2; diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx index 9d6b89ab1e5f..9d996f876713 100644 --- a/forms/source/xforms/model.cxx +++ b/forms/source/xforms/model.cxx @@ -42,9 +42,7 @@ #include <algorithm> // UNO classes -#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> -#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/xml/dom/XDocument.hpp> #include <com/sun/star/xml/dom/XCharacterData.hpp> #include <com/sun/star/xml/dom/NodeType.hpp> @@ -55,15 +53,11 @@ #include <com/sun/star/io/XInputStream.hpp> -using com::sun::star::lang::XMultiServiceFactory; using com::sun::star::lang::XUnoTunnel; using com::sun::star::beans::XPropertySet; using com::sun::star::beans::PropertyValue; -using com::sun::star::beans::PropertyVetoException; -using com::sun::star::beans::UnknownPropertyException; using com::sun::star::util::VetoException; using com::sun::star::lang::WrappedTargetException; -using com::sun::star::lang::IllegalArgumentException; using com::sun::star::ucb::XSimpleFileAccess3; using com::sun::star::ucb::SimpleFileAccess; using com::sun::star::io::XInputStream; diff --git a/forms/source/xforms/model_ui.cxx b/forms/source/xforms/model_ui.cxx index c83d9855416b..90a1ba37f45d 100644 --- a/forms/source/xforms/model_ui.cxx +++ b/forms/source/xforms/model_ui.cxx @@ -41,8 +41,6 @@ #include <com/sun/star/xml/xpath/XXPathObject.hpp> #include <com/sun/star/xml/xpath/XPathObjectType.hpp> #include <com/sun/star/beans/PropertyValue.hpp> -#include <com/sun/star/io/XInputStream.hpp> -#include <com/sun/star/io/XActiveDataSink.hpp> #include <com/sun/star/io/TextInputStream.hpp> #include <com/sun/star/container/XEnumeration.hpp> #include <com/sun/star/container/XNameContainer.hpp> @@ -54,8 +52,6 @@ using com::sun::star::beans::PropertyValue; -using com::sun::star::io::XInputStream; -using com::sun::star::io::XActiveDataSink; using com::sun::star::io::TextInputStream; using com::sun::star::io::XTextInputStream2; using com::sun::star::container::XEnumeration; diff --git a/forms/source/xforms/pathexpression.cxx b/forms/source/xforms/pathexpression.cxx index a6746dd6dc49..82dab2fbf547 100644 --- a/forms/source/xforms/pathexpression.cxx +++ b/forms/source/xforms/pathexpression.cxx @@ -25,11 +25,7 @@ #include <com/sun/star/xml/dom/XNode.hpp> #include <com/sun/star/xml/dom/XNodeList.hpp> -#include <com/sun/star/xml/dom/NodeType.hpp> -#include <com/sun/star/xml/dom/events/XEventListener.hpp> -#include <com/sun/star/xml/dom/events/XEventTarget.hpp> #include <com/sun/star/xml/xpath/XXPathObject.hpp> -#include <com/sun/star/container/XNameContainer.hpp> #include <rtl/ustrbuf.hxx> #include <unotools/textsearch.hxx> @@ -41,13 +37,6 @@ using com::sun::star::uno::Reference; using com::sun::star::xml::dom::XNode; using com::sun::star::xml::dom::XNodeList; -using com::sun::star::xml::dom::events::XEventListener; -using com::sun::star::xml::dom::events::XEventTarget; -using com::sun::star::container::XNameContainer; -using com::sun::star::xml::xpath::XXPathObject; -using com::sun::star::uno::RuntimeException; -using com::sun::star::xml::dom::NodeType_TEXT_NODE; -using com::sun::star::xml::xpath::XPathObjectType_XPATH_UNDEFINED; using namespace std; diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 923085ae1803..4e6182090717 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -35,9 +35,6 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/xforms/XModel.hpp> #include <com/sun/star/uno/RuntimeException.hpp> -#include <com/sun/star/xml/xpath/XXPathObject.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/xml/xpath/XPathObjectType.hpp> #include <com/sun/star/xml/dom/XNodeList.hpp> #include <com/sun/star/xml/dom/XDocument.hpp> #include <com/sun/star/xml/dom/DocumentBuilder.hpp> @@ -66,9 +63,7 @@ using com::sun::star::task::XInteractionRequest; using com::sun::star::task::XInteractionContinuation; using com::sun::star::xforms::XModel; using com::sun::star::xforms::InvalidDataOnSubmitException; -using com::sun::star::container::XNameAccess; using com::sun::star::xml::xpath::XXPathObject; -using com::sun::star::xml::xpath::XPathObjectType; using com::sun::star::frame::XFrame; using xforms::Submission; using xforms::Model; diff --git a/forms/source/xforms/submission/serialization_app_xml.cxx b/forms/source/xforms/submission/serialization_app_xml.cxx index bdd073cfd3d6..1d3d701e3c06 100644 --- a/forms/source/xforms/submission/serialization_app_xml.cxx +++ b/forms/source/xforms/submission/serialization_app_xml.cxx @@ -32,7 +32,6 @@ #include <com/sun/star/xml/sax/XSAXSerializable.hpp> #include <com/sun/star/xml/sax/Writer.hpp> #include <com/sun/star/beans/StringPair.hpp> -#include <com/sun/star/io/XActiveDataSource.hpp> #include <com/sun/star/xml/dom/XDocumentBuilder.hpp> #include <tools/diagnose_ex.h> @@ -44,7 +43,6 @@ using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::Sequence; -using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::uno::UNO_SET_THROW; @@ -53,7 +51,6 @@ using ::com::sun::star::xml::dom::XNode; using ::com::sun::star::xml::dom::XDocument; using ::com::sun::star::xml::sax::XSAXSerializable; using ::com::sun::star::beans::StringPair; -using ::com::sun::star::io::XActiveDataSource; using ::com::sun::star::xml::dom::NodeType_DOCUMENT_NODE; using ::com::sun::star::xml::dom::NodeType_ELEMENT_NODE; using ::com::sun::star::xml::dom::XDocumentBuilder; diff --git a/forms/source/xforms/unohelper.cxx b/forms/source/xforms/unohelper.cxx index 35273757944f..90d1aebb9c44 100644 --- a/forms/source/xforms/unohelper.cxx +++ b/forms/source/xforms/unohelper.cxx @@ -24,9 +24,7 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uno/Exception.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/beans/Property.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySetInfo.hpp> @@ -37,8 +35,6 @@ using com::sun::star::uno::Reference; using com::sun::star::uno::Sequence; using com::sun::star::uno::Exception; -using com::sun::star::uno::XInterface; -using com::sun::star::lang::XMultiServiceFactory; using com::sun::star::beans::Property; using com::sun::star::beans::XPropertySet; using com::sun::star::beans::XPropertySetInfo; diff --git a/forms/source/xforms/xpathlib/extension.cxx b/forms/source/xforms/xpathlib/extension.cxx index fe548e758322..5bf519918960 100644 --- a/forms/source/xforms/xpathlib/extension.cxx +++ b/forms/source/xforms/xpathlib/extension.cxx @@ -29,7 +29,6 @@ using namespace com::sun::star::lang; using namespace com::sun::star::xforms; using namespace com::sun::star::xml::xpath; using namespace com::sun::star::beans; -using com::sun::star::xml::dom::XNode; Libxml2ExtensionHandle SAL_CALL CLibxml2XFormsExtension::getLibxml2ExtensionHandle() throw (RuntimeException, std::exception) { |