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 --- odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx | 1 - odk/examples/cpp/custompanel/ctp_factory.cxx | 5 ----- odk/examples/cpp/custompanel/ctp_panel.cxx | 2 -- 3 files changed, 8 deletions(-) (limited to 'odk') diff --git a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx index 8a39becd63a7..0ee09734a09a 100644 --- a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx @@ -24,7 +24,6 @@ using com::sun::star::frame::XFrame; using com::sun::star::frame::XDispatch; using com::sun::star::frame::XStatusListener; -using com::sun::star::lang::XEventListener; using com::sun::star::lang::EventObject; using com::sun::star::uno::Reference; using com::sun::star::uno::RuntimeException; diff --git a/odk/examples/cpp/custompanel/ctp_factory.cxx b/odk/examples/cpp/custompanel/ctp_factory.cxx index c3c5842859ae..2b2387d53106 100644 --- a/odk/examples/cpp/custompanel/ctp_factory.cxx +++ b/odk/examples/cpp/custompanel/ctp_factory.cxx @@ -21,9 +21,7 @@ #include "ctp_factory.hxx" #include "ctp_panel.hxx" -#include #include -#include #include namespace sd { namespace colortoolpanel @@ -31,13 +29,10 @@ namespace sd { namespace colortoolpanel using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; using ::com::sun::star::uno::UNO_QUERY; - 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::lang::NotInitializedException; using ::com::sun::star::lang::IllegalArgumentException; - using ::com::sun::star::lang::XComponent; using ::com::sun::star::ui::XUIElement; using ::com::sun::star::beans::PropertyValue; using ::com::sun::star::container::NoSuchElementException; diff --git a/odk/examples/cpp/custompanel/ctp_panel.cxx b/odk/examples/cpp/custompanel/ctp_panel.cxx index 9720e4ddbbb9..a6f03e247e75 100644 --- a/odk/examples/cpp/custompanel/ctp_panel.cxx +++ b/odk/examples/cpp/custompanel/ctp_panel.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -50,7 +49,6 @@ namespace sd { namespace colortoolpanel using ::com::sun::star::lang::DisposedException; using ::com::sun::star::awt::XWindowPeer; using ::com::sun::star::lang::XMultiComponentFactory; - using ::com::sun::star::awt::XToolkit; using ::com::sun::star::awt::WindowDescriptor; using ::com::sun::star::awt::WindowClass_SIMPLE; using ::com::sun::star::awt::Rectangle; -- cgit v1.2.3