summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-17 19:20:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-18 07:25:24 +0000
commit150ac9cf05ed9da6a2af5bc3f820280fd853e519 (patch)
tree10a73ee6974c2ee67ee63a09e533081ce519685f /odk
parent0fa6c88007f61176ac707cb5d77fd35cf1521123 (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 'odk')
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx1
-rw-r--r--odk/examples/cpp/custompanel/ctp_factory.cxx5
-rw-r--r--odk/examples/cpp/custompanel/ctp_panel.cxx2
3 files changed, 0 insertions, 8 deletions
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 <com/sun/star/lang/NotInitializedException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
#include <cppuhelper/supportsservice.hxx>
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 <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/awt/XWindowPeer.hpp>
-#include <com/sun/star/awt/Toolkit.hpp>
#include <com/sun/star/awt/WindowClass.hpp>
#include <com/sun/star/awt/WindowAttribute.hpp>
#include <com/sun/star/awt/PosSize.hpp>
@@ -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;