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 /sc/source/ui | |
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 'sc/source/ui')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleFilterMenu.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh6.cxx | 9 | ||||
-rw-r--r-- | sc/source/ui/docshell/macromgr.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/optdlg/tpformula.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undotab.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/defltuno.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/warnpassword.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/view/cellsh3.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/view/overlayobject.cxx | 1 |
11 files changed, 0 insertions, 31 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx b/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx index 2cb914dfed5a..15a63a2fb9b8 100644 --- a/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx +++ b/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx @@ -45,10 +45,8 @@ using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::lang::IndexOutOfBoundsException; -using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::uno::RuntimeException; using ::std::for_each; -using ::std::vector; namespace { diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 38c10aa2e79f..1e9a1029e89c 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -69,8 +69,6 @@ #include <svtools/miscopt.hxx> #include <comphelper/string.hxx> #include <com/sun/star/frame/XLayoutManager.hpp> -#include <com/sun/star/frame/XModel.hpp> -#include <com/sun/star/frame/XController.hpp> #define THESIZE 1000000 // Should be more than enough! #define TBX_WINDOW_HEIGHT 22 // in pixel - TODO: The same on all systems? @@ -84,9 +82,6 @@ using com::sun::star::uno::Reference; using com::sun::star::uno::UNO_QUERY; using com::sun::star::frame::XLayoutManager; -using com::sun::star::frame::XModel; -using com::sun::star::frame::XFrame; -using com::sun::star::frame::XController; using com::sun::star::beans::XPropertySet; enum ScNameInputType diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx index 222c1e107c46..729e93173518 100644 --- a/sc/source/ui/docshell/docsh6.cxx +++ b/sc/source/ui/docshell/docsh6.cxx @@ -38,17 +38,8 @@ #include <vcl/msgbox.hxx> -#include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> -#include <com/sun/star/util/XChangesBatch.hpp> #include <memory> -using ::com::sun::star::beans::XPropertySet; -using ::com::sun::star::lang::XMultiServiceFactory; -using ::com::sun::star::container::XNameAccess; -using ::com::sun::star::util::XChangesBatch; -using ::com::sun::star::uno::Exception; namespace { diff --git a/sc/source/ui/docshell/macromgr.cxx b/sc/source/ui/docshell/macromgr.cxx index ba1c132f978b..69ad2cbf77be 100644 --- a/sc/source/ui/docshell/macromgr.cxx +++ b/sc/source/ui/docshell/macromgr.cxx @@ -33,7 +33,6 @@ using namespace ::com::sun::star; using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Reference; using ::std::list; -using ::std::for_each; using ::std::pair; /** diff --git a/sc/source/ui/optdlg/tpformula.cxx b/sc/source/ui/optdlg/tpformula.cxx index 70f913983fd2..afbf42160627 100644 --- a/sc/source/ui/optdlg/tpformula.cxx +++ b/sc/source/ui/optdlg/tpformula.cxx @@ -32,11 +32,6 @@ #include <unotools/localedatawrapper.hxx> -#include <com/sun/star/lang/Locale.hpp> -#include <com/sun/star/i18n/LocaleDataItem.hpp> - -using ::com::sun::star::lang::Locale; -using ::com::sun::star::i18n::LocaleDataItem; ScTpFormulaOptions::ScTpFormulaOptions(vcl::Window* pParent, const SfxItemSet& rCoreAttrs) : SfxTabPage(pParent, "OptFormula", "modules/scalc/ui/optformula.ui", &rCoreAttrs), diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx index 9802c9c06b52..49c1ef96991e 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx @@ -18,7 +18,6 @@ */ #include <sfx2/sidebar/ResourceDefinitions.hrc> -#include <sfx2/sidebar/Theme.hxx> #include <sfx2/sidebar/ControlFactory.hxx> #include "NumberFormatPropertyPanel.hxx" #include <NumberFormatPropertyPanel.hrc> @@ -36,7 +35,6 @@ using namespace css; using namespace css::uno; -using ::sfx2::sidebar::Theme; namespace sc { namespace sidebar { diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index ae987aeefc60..877d38dd9a39 100644 --- a/sc/source/ui/undo/undotab.cxx +++ b/sc/source/ui/undo/undotab.cxx @@ -56,7 +56,6 @@ extern bool bDrawIsInUndo; // somewhere as member! using namespace com::sun::star; using ::std::unique_ptr; using ::std::vector; -using std::shared_ptr; ScUndoInsertTab::ScUndoInsertTab( ScDocShell* pNewDocShell, diff --git a/sc/source/ui/unoobj/defltuno.cxx b/sc/source/ui/unoobj/defltuno.cxx index f7a02ce8aedd..fa329a03ca56 100644 --- a/sc/source/ui/unoobj/defltuno.cxx +++ b/sc/source/ui/unoobj/defltuno.cxx @@ -68,7 +68,6 @@ static const SfxItemPropertyMapEntry* lcl_GetDocDefaultsMap() } using sc::HMMToTwips; -using sc::TwipsToHMM; using sc::TwipsToEvenHMM; SC_SIMPLE_SERVICE_INFO( ScDocDefaultsObj, "ScDocDefaultsObj", "com.sun.star.sheet.Defaults" ) diff --git a/sc/source/ui/unoobj/warnpassword.cxx b/sc/source/ui/unoobj/warnpassword.cxx index 02e59aef4184..f7a5ca74ef6a 100644 --- a/sc/source/ui/unoobj/warnpassword.cxx +++ b/sc/source/ui/unoobj/warnpassword.cxx @@ -19,7 +19,6 @@ #include "warnpassword.hxx" #include <com/sun/star/task/XInteractionHandler.hpp> -#include <com/sun/star/task/XInteractionRequest.hpp> #include <svl/itemset.hxx> #include <sfx2/docfile.hxx> #include <sfx2/sfxsids.hrc> @@ -32,11 +31,9 @@ using ::com::sun::star::uno::makeAny; using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Reference; -using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::XInterface; using ::com::sun::star::task::InteractionClassification_QUERY; using ::com::sun::star::task::XInteractionHandler; -using ::com::sun::star::task::XInteractionRequest; using ::com::sun::star::ucb::InteractiveAppException; bool ScWarnPassword::WarningOnPassword( SfxMedium& rMedium ) diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx index e85e70a68abc..cc7dc339d9e8 100644 --- a/sc/source/ui/view/cellsh3.cxx +++ b/sc/source/ui/view/cellsh3.cxx @@ -53,7 +53,6 @@ #define IS_EDITMODE() GetViewData()->HasEditView( GetViewData()->GetActivePart() ) using sc::HMMToTwips; -using sc::TwipsToHMM; using sc::TwipsToEvenHMM; void ScCellShell::Execute( SfxRequest& rReq ) diff --git a/sc/source/ui/view/overlayobject.cxx b/sc/source/ui/view/overlayobject.cxx index 54bc968fcf7c..469e98d387d2 100644 --- a/sc/source/ui/view/overlayobject.cxx +++ b/sc/source/ui/view/overlayobject.cxx @@ -31,7 +31,6 @@ using sdr::overlay::OverlayObject; using sdr::overlay::OverlayManager; -using ::drawinglayer::primitive2d::Primitive2DSequence; #define DASH_UPDATE_INTERVAL 180 // in msec |