From 75706c003c3e224047e2f5b079aebde4e3d40d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dobrakowski?= Date: Tue, 2 Apr 2024 02:11:44 +0200 Subject: [PATCH] tdf#146619 Remove unused #includes from C/C++ files the 'desktop' module was cleaned Change-Id: Ia7dcb77a42ca7f9be67e30d10cd54697bf93b6d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165663 Tested-by: Jenkins Reviewed-by: Gabor Kelemen --- desktop/IwyuFilter_desktop.yaml | 6 ++++++ desktop/qa/desktop_lib/test_desktop_lib.cxx | 7 +------ desktop/source/app/app.cxx | 2 -- desktop/source/app/appinit.cxx | 1 - desktop/source/app/dispatchwatcher.cxx | 1 - desktop/source/app/sofficemain.cxx | 1 - desktop/source/deployment/gui/dp_gui_dialog2.cxx | 1 - desktop/source/deployment/inc/dp_version.hxx | 2 +- .../deployment/manager/dp_commandenvironments.cxx | 2 -- .../source/deployment/manager/dp_extensionmanager.cxx | 3 --- desktop/source/deployment/misc/dp_misc.cxx | 1 - desktop/source/deployment/misc/dp_platform.cxx | 1 - desktop/source/deployment/misc/dp_version.cxx | 1 - .../registry/configuration/dp_configuration.cxx | 1 - .../deployment/registry/script/dp_lib_container.cxx | 1 - desktop/source/lib/init.cxx | 10 ---------- .../migration/services/oo3extensionmigration.cxx | 1 - desktop/source/splash/splash.cxx | 2 -- 18 files changed, 8 insertions(+), 36 deletions(-) diff --git a/desktop/IwyuFilter_desktop.yaml b/desktop/IwyuFilter_desktop.yaml index cfe94e22cc28..76a0c31ad2d5 100644 --- a/desktop/IwyuFilter_desktop.yaml +++ b/desktop/IwyuFilter_desktop.yaml @@ -94,3 +94,9 @@ excludelist: desktop/source/splash/splash.cxx: # Needed for rtl::math::round - rtl/math.hxx + desktop/source/lib/lokandroid.cxx: + # Needed for osl_getThreadTextEncoding + - osl/thread.hxx + desktop/source/deployment/misc/dp_misc.cxx: + # Needed for osl_getThreadTextEncoding + - osl/thread.hxx diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 298e5a5d7a9b..4310e64f25dd 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -31,8 +30,6 @@ #include #include #include -#include -#include #include #include #include @@ -45,14 +42,11 @@ #include #include #include -#include -#include #include #include #include #include #include -#include #include #include #include @@ -2343,6 +2337,7 @@ void DesktopLOKTest::testPaintPartTileDifferentSchemes() } #if HAVE_MORE_FONTS +#include void DesktopLOKTest::testGetFontSubset() { LibLODocument_Impl* pDocument = loadDoc("blank_text.odt"); diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 0a893b9adc28..d02041c220a2 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -60,7 +60,6 @@ #include #include #include -#include #include #include #include @@ -118,7 +117,6 @@ #include #include #include -#include #include #include #include diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx index 76bd04347ad6..887b717d43ad 100644 --- a/desktop/source/app/appinit.cxx +++ b/desktop/source/app/appinit.cxx @@ -24,7 +24,6 @@ #include #include "cmdlineargs.hxx" #include -#include #include #include #include diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index 863d246951e9..af26ef9eaab9 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include #include diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 0b02155f59fb..448977684b9a 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -30,7 +30,6 @@ #include #include -#include #include #include #include diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 03885b161941..d5af09441405 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -38,7 +38,6 @@ #include #include -#include #include #include diff --git a/desktop/source/deployment/inc/dp_version.hxx b/desktop/source/deployment/inc/dp_version.hxx index f088b6861a2f..2b7c8787bdc0 100644 --- a/desktop/source/deployment/inc/dp_version.hxx +++ b/desktop/source/deployment/inc/dp_version.hxx @@ -21,9 +21,9 @@ #include -#include #include "dp_misc_api.hxx" +#include namespace dp_misc { diff --git a/desktop/source/deployment/manager/dp_commandenvironments.cxx b/desktop/source/deployment/manager/dp_commandenvironments.cxx index 0a25e042f0e9..2b98ff971908 100644 --- a/desktop/source/deployment/manager/dp_commandenvironments.cxx +++ b/desktop/source/deployment/manager/dp_commandenvironments.cxx @@ -24,8 +24,6 @@ #include #include #include -#include -#include #include #include "dp_commandenvironments.hxx" #include diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx index f393a30c9489..6c210101fcc0 100644 --- a/desktop/source/deployment/manager/dp_extensionmanager.cxx +++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx @@ -24,14 +24,12 @@ #include #include #include -#include #include #include #include #include #include #include -#include #include #include #include @@ -39,7 +37,6 @@ #include #include #include -#include #include #include #include diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx index 01fb414a7909..6011d15cb11d 100644 --- a/desktop/source/deployment/misc/dp_misc.cxx +++ b/desktop/source/deployment/misc/dp_misc.cxx @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/desktop/source/deployment/misc/dp_platform.cxx b/desktop/source/deployment/misc/dp_platform.cxx index b2af59f9b926..aeab3e567051 100644 --- a/desktop/source/deployment/misc/dp_platform.cxx +++ b/desktop/source/deployment/misc/dp_platform.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include #include diff --git a/desktop/source/deployment/misc/dp_version.cxx b/desktop/source/deployment/misc/dp_version.cxx index 8006e7b6cf8c..6f918068541a 100644 --- a/desktop/source/deployment/misc/dp_version.cxx +++ b/desktop/source/deployment/misc/dp_version.cxx @@ -21,7 +21,6 @@ #include #include -#include #include diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx index 622814248670..3bfac940bce6 100644 --- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx +++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/desktop/source/deployment/registry/script/dp_lib_container.cxx b/desktop/source/deployment/registry/script/dp_lib_container.cxx index 3a6f30253fb0..601cb5b39daa 100644 --- a/desktop/source/deployment/registry/script/dp_lib_container.cxx +++ b/desktop/source/deployment/registry/script/dp_lib_container.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include "dp_lib_container.h" diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 52057cd2645d..3963b86eab34 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -17,8 +17,6 @@ #include #include -#include -#include #ifdef IOS #include @@ -53,7 +51,6 @@ #include #include #include -#include #include #include @@ -74,7 +71,6 @@ #include #include #include -#include #include #include #include @@ -88,14 +84,12 @@ #include #include #include -#include #include #include #include #include #include -#include #include #include #include @@ -126,7 +120,6 @@ #include #include -#include #include #include #include @@ -148,8 +141,6 @@ #include #include #include -#include -#include #include #include #include @@ -227,7 +218,6 @@ #include #include #include -#include #include #include diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx index 174f82ec6936..d8e90abe416f 100644 --- a/desktop/source/migration/services/oo3extensionmigration.cxx +++ b/desktop/source/migration/services/oo3extensionmigration.cxx @@ -30,7 +30,6 @@ #include #include -#include #include #include #include diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index 17cc7fb53438..01a2ed3f0bf8 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -26,11 +26,9 @@ #include #include #include -#include #include #include #include -#include #include #include #include