From 025f540dba1c5b046b4fdbd9418dcaaa900e006d Mon Sep 17 00:00:00 2001 From: Venetia Furtado Date: Fri, 28 Jul 2023 19:46:39 -0600 Subject: [PATCH] tdf#146619 Remove unused #includes from C/C++ files Change-Id: Ia8b406b6a59086160a5167480c6d3bde6574ffbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155029 Tested-by: Jenkins Tested-by: Gabor Kelemen Reviewed-by: Gabor Kelemen --- sal/IwyuFilter_sal.yaml | 6 ++++++ sal/osl/all/debugbase.cxx | 1 - sal/osl/all/loadmodulerelative.cxx | 3 --- sal/osl/all/log.cxx | 2 -- sal/osl/all/signalshared.cxx | 1 - salhelper/qa/test_api.cxx | 3 --- sax/source/fastparser/fastparser.cxx | 1 - sax/source/tools/fastattribs.cxx | 1 - sax/source/tools/fastserializer.cxx | 1 - 9 files changed, 6 insertions(+), 13 deletions(-) create mode 100644 sal/IwyuFilter_sal.yaml diff --git a/sal/IwyuFilter_sal.yaml b/sal/IwyuFilter_sal.yaml new file mode 100644 index 000000000000..4337fa73b4c3 --- /dev/null +++ b/sal/IwyuFilter_sal.yaml @@ -0,0 +1,6 @@ +--- +assumeFilename: sal/osl/all/log.cxx +excludelist: + sal/osl/all/log.cxx: + #sal_use_syslog required from this file + - salusesyslog.hxx \ No newline at end of file diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx index b4b598589a00..51656e7d37d2 100644 --- a/sal/osl/all/debugbase.cxx +++ b/sal/osl/all/debugbase.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include #include diff --git a/sal/osl/all/loadmodulerelative.cxx b/sal/osl/all/loadmodulerelative.cxx index 242bb6210a76..f7a6938ed130 100644 --- a/sal/osl/all/loadmodulerelative.cxx +++ b/sal/osl/all/loadmodulerelative.cxx @@ -18,9 +18,6 @@ */ #include - -#include - #include #include #include diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index e9895e14cb7b..15cb269a1976 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -11,11 +11,9 @@ #include #include -#include #include #include #include -#include #include diff --git a/sal/osl/all/signalshared.cxx b/sal/osl/all/signalshared.cxx index 530413f2604c..9ed08626f74f 100644 --- a/sal/osl/all/signalshared.cxx +++ b/sal/osl/all/signalshared.cxx @@ -23,7 +23,6 @@ #include -#include #include namespace diff --git a/salhelper/qa/test_api.cxx b/salhelper/qa/test_api.cxx index 2d4b8be0e2a8..54353e228479 100644 --- a/salhelper/qa/test_api.cxx +++ b/salhelper/qa/test_api.cxx @@ -18,9 +18,6 @@ */ #include - -#include - #include #include #include diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 344dda9cd63e..fd1b147f044e 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index 917e9c8ab048..45e2e9c5ebba 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index 9461e784ca4a..50408e4dc284 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -23,7 +23,6 @@ #include #include #include -#include #include #include