From 150ac9cf05ed9da6a2af5bc3f820280fd853e519 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 17 Apr 2016 19:20:37 +0200 Subject: 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 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- oox/source/core/filterdetect.cxx | 1 - oox/source/drawingml/chart/chartspaceconverter.cxx | 1 - oox/source/drawingml/chart/titleconverter.cxx | 1 - oox/source/drawingml/colorchoicecontext.cxx | 5 ----- oox/source/drawingml/fillpropertiesgroupcontext.cxx | 1 - oox/source/drawingml/lineproperties.cxx | 2 -- oox/source/drawingml/shape3dproperties.cxx | 2 -- oox/source/drawingml/textparagraphpropertiescontext.cxx | 2 -- oox/source/drawingml/transform2dcontext.cxx | 4 ---- oox/source/export/chartexport.cxx | 10 ---------- oox/source/export/drawingml.cxx | 2 -- oox/source/export/shapes.cxx | 5 ----- oox/source/ole/olehelper.cxx | 13 ------------- oox/source/ppt/commontimenodecontext.cxx | 1 - 14 files changed, 50 deletions(-) (limited to 'oox') diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx index 66d581a5a6d5..94ed6402ae40 100644 --- a/oox/source/core/filterdetect.cxx +++ b/oox/source/core/filterdetect.cxx @@ -47,7 +47,6 @@ using namespace ::com::sun::star::xml::sax; using namespace ::com::sun::star::uri; using utl::MediaDescriptor; -using comphelper::SequenceAsHashMap; using comphelper::IDocPasswordVerifier; using comphelper::DocPasswordVerifierResult; diff --git a/oox/source/drawingml/chart/chartspaceconverter.cxx b/oox/source/drawingml/chart/chartspaceconverter.cxx index e720ab5ceeff..b9120693e736 100644 --- a/oox/source/drawingml/chart/chartspaceconverter.cxx +++ b/oox/source/drawingml/chart/chartspaceconverter.cxx @@ -43,7 +43,6 @@ using ::com::sun::star::drawing::XDrawPageSupplier; using ::com::sun::star::drawing::XShapes; using ::com::sun::star::chart2::XDiagram; using ::com::sun::star::chart2::XTitled; -using ::com::sun::star::beans::XPropertySet; namespace oox { namespace drawingml { diff --git a/oox/source/drawingml/chart/titleconverter.cxx b/oox/source/drawingml/chart/titleconverter.cxx index 743fe1fe4660..f93183a8f18b 100644 --- a/oox/source/drawingml/chart/titleconverter.cxx +++ b/oox/source/drawingml/chart/titleconverter.cxx @@ -46,7 +46,6 @@ using namespace ::com::sun::star::chart2::data; using namespace ::com::sun::star::drawing; using namespace ::com::sun::star::uno; -using ::oox::core::XmlFilterBase; TextConverter::TextConverter( const ConverterRoot& rParent, TextModel& rModel ) : ConverterBase< TextModel >( rParent, rModel ) diff --git a/oox/source/drawingml/colorchoicecontext.cxx b/oox/source/drawingml/colorchoicecontext.cxx index 3c100ae0de50..4ebbf5ac08d6 100644 --- a/oox/source/drawingml/colorchoicecontext.cxx +++ b/oox/source/drawingml/colorchoicecontext.cxx @@ -22,11 +22,6 @@ #include "oox/helper/attributelist.hxx" #include "oox/drawingml/color.hxx" -using ::com::sun::star::uno::RuntimeException; -using ::com::sun::star::xml::sax::SAXException; -using ::com::sun::star::xml::sax::XFastAttributeList; -using ::com::sun::star::xml::sax::XFastContextHandler; -using ::oox::core::ContextHandler; namespace oox { namespace drawingml { diff --git a/oox/source/drawingml/fillpropertiesgroupcontext.cxx b/oox/source/drawingml/fillpropertiesgroupcontext.cxx index c212ba7e5de7..cca0752170f9 100644 --- a/oox/source/drawingml/fillpropertiesgroupcontext.cxx +++ b/oox/source/drawingml/fillpropertiesgroupcontext.cxx @@ -29,7 +29,6 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xml::sax; using ::oox::core::ContextHandler2; -using ::oox::core::XmlFilterBase; using ::oox::core::ContextHandlerRef; namespace oox { diff --git a/oox/source/drawingml/lineproperties.cxx b/oox/source/drawingml/lineproperties.cxx index 2fd947b07319..003dde4329f5 100644 --- a/oox/source/drawingml/lineproperties.cxx +++ b/oox/source/drawingml/lineproperties.cxx @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -39,7 +38,6 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::drawing; -using ::com::sun::star::container::XNameContainer; namespace oox { namespace drawingml { diff --git a/oox/source/drawingml/shape3dproperties.cxx b/oox/source/drawingml/shape3dproperties.cxx index 728c7116a0a2..00e6bb59c55a 100644 --- a/oox/source/drawingml/shape3dproperties.cxx +++ b/oox/source/drawingml/shape3dproperties.cxx @@ -37,8 +37,6 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::drawing; using namespace ::com::sun::star::graphic; -using ::com::sun::star::uno::Exception; -using ::oox::core::XmlFilterBase; namespace oox { namespace drawingml { diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx index c152a99eb679..ff0c2018d5c3 100644 --- a/oox/source/drawingml/textparagraphpropertiescontext.cxx +++ b/oox/source/drawingml/textparagraphpropertiescontext.cxx @@ -20,7 +20,6 @@ #include "drawingml/textparagraphpropertiescontext.hxx" #include -#include #include #include @@ -33,7 +32,6 @@ #include "texttabstoplistcontext.hxx" using namespace ::oox::core; -using ::com::sun::star::awt::FontDescriptor; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xml::sax; using namespace ::com::sun::star::style; diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx index 642cbf94f762..15c30f8cf628 100644 --- a/oox/source/drawingml/transform2dcontext.cxx +++ b/oox/source/drawingml/transform2dcontext.cxx @@ -24,10 +24,6 @@ #include "drawingml/textbody.hxx" using namespace ::com::sun::star; -using ::com::sun::star::uno::RuntimeException; -using ::com::sun::star::xml::sax::SAXException; -using ::com::sun::star::xml::sax::XFastAttributeList; -using ::com::sun::star::xml::sax::XFastContextHandler; using ::oox::core::ContextHandlerRef; namespace oox { diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index b4a819c7c4db..b003b172c5f9 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -66,8 +66,6 @@ #include #include -#include -#include #include #include #include @@ -76,7 +74,6 @@ #include #include -#include #include #include @@ -103,18 +100,11 @@ using namespace css; using namespace css::uno; using namespace css::drawing; using namespace ::oox::core; -using css::beans::PropertyState; using css::beans::PropertyValue; using css::beans::XPropertySet; -using css::beans::XPropertyState; -using css::container::XEnumeration; -using css::container::XEnumerationAccess; -using css::container::XIndexAccess; using css::container::XNamed; -using css::io::XOutputStream; using css::table::CellAddress; using css::sheet::XFormulaParser; -using css::sheet::XFormulaTokens; using ::oox::core::XmlFilterBase; using ::sax_fastparser::FSHelperPtr; diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index dd9266975290..6096ba997ad4 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include @@ -98,7 +97,6 @@ using namespace ::css::uno; using namespace ::css::container; using namespace ::css::text; -using ::css::geometry::IntegerRectangle2D; using ::css::io::XOutputStream; using ::sax_fastparser::FSHelperPtr; using ::sax_fastparser::FastSerializerHelper; diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index ea5cc61e2eb4..b14ad338372d 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -56,10 +56,8 @@ #include #include #include -#include #include #include -#include #include #include #include @@ -105,12 +103,9 @@ using namespace ::css::container; using namespace ::css::document; using namespace ::css::text; -using ::css::graphic::XGraphic; using ::css::io::XOutputStream; -using ::css::lang::XComponent; using ::css::chart2::XChartDocument; using ::css::frame::XModel; -using ::css::sheet::XSpreadsheetDocument; using ::oox::core::XmlFilterBase; using ::sax_fastparser::FSHelperPtr; diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index 7eae88618ebb..4068fa7661ea 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -32,11 +32,7 @@ #include #include -#include -#include #include -#include -#include #include #include @@ -47,24 +43,15 @@ namespace oox { namespace ole { using ::com::sun::star::form::XFormComponent; -using ::com::sun::star::form::XForm; using ::com::sun::star::awt::XControlModel; using ::com::sun::star::awt::Size; using ::com::sun::star::frame::XModel; -using ::com::sun::star::form::XFormsSupplier; -using ::com::sun::star::drawing::XDrawPage; -using ::com::sun::star::drawing::XDrawPageSupplier; -using ::com::sun::star::drawing::XShapes; using ::com::sun::star::io::XOutputStream; using ::com::sun::star::io::XInputStream; using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::uno::Reference; -using ::com::sun::star::uno::XInterface; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::uno::XComponentContext; -using ::com::sun::star::container::XIndexContainer; -using ::com::sun::star::container::XNameContainer; -using ::com::sun::star::lang::XMultiServiceFactory; using ::com::sun::star::lang::XServiceInfo; using namespace ::com::sun::star::form; diff --git a/oox/source/ppt/commontimenodecontext.cxx b/oox/source/ppt/commontimenodecontext.cxx index 83a3af8acabe..7a5402abca45 100644 --- a/oox/source/ppt/commontimenodecontext.cxx +++ b/oox/source/ppt/commontimenodecontext.cxx @@ -47,7 +47,6 @@ using namespace ::com::sun::star::animations; using namespace ::com::sun::star::presentation; using namespace ::com::sun::star::xml::sax; -using ::com::sun::star::beans::NamedValue; namespace oox { namespace ppt { -- cgit