summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2023-04-15 21:22:45 +0200
committerMiklos Vajna <vmiklos@collabora.com>2023-04-25 08:09:28 +0200
commit75ed56689427f972ce58e395af8aaf951dda7581 (patch)
treef02b1f7712ea688d7ee029729274f80b43c21f50 /odk
parent26bf26272bf525b59b4a4ce18b3ce14c1febfd7b (diff)
Add script to find unused using declarations
As a complementer to clang-tidy-12 --checks="-*,misc-unused-using-decls" Pros: - simple, fast! - finds some more unused declarations, somehow - works on non-linux specific parts of the code - clang-tidy (for me) trips on files with external headers, this does not Change-Id: If2db989114ac5c2841ed2e89ff7bd7a9e419f567 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150612 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx1
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/MyJob.cxx3
2 files changed, 0 insertions, 4 deletions
diff --git a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx
index a36e801382f7..d0fc8141db1d 100644
--- a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx
+++ b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx
@@ -26,7 +26,6 @@ using com::sun::star::frame::XDispatch;
using com::sun::star::frame::XStatusListener;
using com::sun::star::lang::EventObject;
using com::sun::star::uno::Reference;
-using com::sun::star::uno::RuntimeException;
using com::sun::star::frame::FeatureStateEvent;
static AllListeners aListeners;
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx b/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx
index b67d3c93fb68..44201fb3be01 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx
+++ b/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx
@@ -31,9 +31,6 @@ using com::sun::star::uno::Reference;
using com::sun::star::uno::Any;
using com::sun::star::uno::UNO_QUERY;
using com::sun::star::uno::XInterface;
-using com::sun::star::uno::Exception;
-using com::sun::star::uno::RuntimeException;
-using com::sun::star::lang::IllegalArgumentException;
using com::sun::star::lang::XMultiServiceFactory;
using com::sun::star::beans::NamedValue;
using com::sun::star::document::XEventBroadcaster;