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 /sw | |
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 'sw')
-rw-r--r-- | sw/source/core/access/accpreview.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/doc/docxforms.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/unocore/unoevent.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/writerwordglue.cxx | 1 | ||||
-rw-r--r-- | sw/source/filter/xml/XMLRedlineImportHelper.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dialog/macassgn.cxx | 1 |
6 files changed, 0 insertions, 14 deletions
diff --git a/sw/source/core/access/accpreview.cxx b/sw/source/core/access/accpreview.cxx index 774aa3ecdbcc..343199cdf435 100644 --- a/sw/source/core/access/accpreview.cxx +++ b/sw/source/core/access/accpreview.cxx @@ -26,7 +26,6 @@ const sal_Char sImplementationName[] = "com.sun.star.comp.Writer.SwAccessibleDocumentPageView"; -using ::com::sun::star::lang::IndexOutOfBoundsException; using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Sequence; diff --git a/sw/source/core/doc/docxforms.cxx b/sw/source/core/doc/docxforms.cxx index f5254546acd0..c7011a9d1323 100644 --- a/sw/source/core/doc/docxforms.cxx +++ b/sw/source/core/doc/docxforms.cxx @@ -20,7 +20,6 @@ #include <doc.hxx> #include <docsh.hxx> #include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/frame/XModule.hpp> #include <com/sun/star/xforms/Model.hpp> @@ -34,11 +33,9 @@ using namespace ::com::sun::star; using uno::Reference; -using uno::XInterface; using uno::UNO_QUERY; using uno::makeAny; using uno::Exception; -using container::XNameContainer; using xforms::XModel2; using frame::XModule; using xforms::XFormsUIHelper1; diff --git a/sw/source/core/unocore/unoevent.cxx b/sw/source/core/unocore/unoevent.cxx index bb6c1eebd2c0..ddecea980abf 100644 --- a/sw/source/core/unocore/unoevent.cxx +++ b/sw/source/core/unocore/unoevent.cxx @@ -28,17 +28,11 @@ #include "fmtinfmt.hxx" #include <svl/macitem.hxx> #include <rtl/ustrbuf.hxx> -#include <com/sun/star/beans/PropertyValue.hpp> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; -using ::com::sun::star::container::NoSuchElementException; using ::com::sun::star::container::XNameReplace; -using ::com::sun::star::lang::IllegalArgumentException; -using ::com::sun::star::lang::WrappedTargetException; -using ::com::sun::star::lang::XServiceInfo; -using ::com::sun::star::beans::PropertyValue; // tables of allowed events for specific objects diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx index c25dbf93f789..6f389342a1a0 100644 --- a/sw/source/filter/ww8/writerwordglue.cxx +++ b/sw/source/filter/ww8/writerwordglue.cxx @@ -592,7 +592,6 @@ namespace sw } ubidi_close(pBidi); - using sw::types::writer_cast; if (g_pBreakIt && g_pBreakIt->GetBreakIter().is()) { diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx index 39c80822095d..0952c460795d 100644 --- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx +++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx @@ -28,7 +28,6 @@ #include "poolfmt.hxx" #include "unoredline.hxx" #include <xmloff/xmltoken.hxx> -#include <com/sun/star/frame/XModel.hpp> #include <vcl/svapp.hxx> #include <osl/mutex.hxx> @@ -36,7 +35,6 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::xmloff::token; -using ::com::sun::star::frame::XModel; using ::com::sun::star::text::XTextCursor; using ::com::sun::star::text::XTextRange; using ::com::sun::star::text::XText; diff --git a/sw/source/ui/dialog/macassgn.cxx b/sw/source/ui/dialog/macassgn.cxx index 0e8fc7cf8ab2..39c0a35f6d0b 100644 --- a/sw/source/ui/dialog/macassgn.cxx +++ b/sw/source/ui/dialog/macassgn.cxx @@ -38,7 +38,6 @@ #include <doc.hxx> -using ::com::sun::star::frame::XFrame; SfxEventNamesItem SwMacroAssignDlg::AddEvents( DlgEventType eType ) { |