From 75ed56689427f972ce58e395af8aaf951dda7581 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 15 Apr 2023 21:22:45 +0200 Subject: 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 --- fpicker/source/office/contentenumeration.cxx | 1 - fpicker/source/win32/WinImplHelper.cxx | 6 ------ 2 files changed, 7 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/contentenumeration.cxx b/fpicker/source/office/contentenumeration.cxx index 6ac33673909e..2a5b0156480a 100644 --- a/fpicker/source/office/contentenumeration.cxx +++ b/fpicker/source/office/contentenumeration.cxx @@ -63,7 +63,6 @@ namespace svt using ::com::sun::star::ucb::CommandAbortedException; using ::com::sun::star::ucb::XContentAccess; using ::com::sun::star::ucb::XCommandEnvironment; - using ::ucbhelper::ResultSetInclude; using ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS; diff --git a/fpicker/source/win32/WinImplHelper.cxx b/fpicker/source/win32/WinImplHelper.cxx index 5d6e20d92319..9f81f6b60ffc 100644 --- a/fpicker/source/win32/WinImplHelper.cxx +++ b/fpicker/source/win32/WinImplHelper.cxx @@ -24,12 +24,6 @@ #include #include -using ::com::sun::star::lang::IllegalArgumentException; -using ::com::sun::star::uno::Reference; -using ::com::sun::star::uno::XInterface; -using ::com::sun::star::uno::Any; -using ::com::sun::star::uno::Sequence; - const sal_Unicode TILDE_SIGN = L'~'; const sal_Unicode AMPERSAND_SIGN = L'&'; -- cgit