tdf#146619 Remove unused includes from sal/ [cpp files]

Change-Id: I11a54c1ddf73c16ce46a0d1c375bf43157870db7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155856
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
Gabor Kelemen 2023-09-12 15:32:43 +02:00 committed by Miklos Vajna
parent f2f32aaa83
commit 2e71c43905
25 changed files with 36 additions and 64 deletions

View file

@ -18,6 +18,12 @@ excludelist:
sal/android/uthash.h:
# needed for defines to work / somehow on Linux there is a warning about android-related file
- string.h
sal/cppunittester/cppunittester.cxx:
# Actually used
- boost/algorithm/string.hpp
sal/emscripten/lo-bootstrap.c:
# Actually needed for lo_get_app_data_dir
- osl/detail/emscripten-bootstrap.h
sal/qa/osl/security/osl_Security.cxx:
# Needed on _WIN32
- o3tl/char16_t2wchar_t.hxx
@ -66,3 +72,28 @@ excludelist:
sal/osl/unx/uunxapi.cxx:
# Needed for macxp_resolveAlias on MACOSX
- system.hxx
sal/rtl/bootstrap.cxx:
# Needed on MACOSX
- config_folders.h
sal/textenc/tables.cxx:
# Needed for the .tab files to work
- cstddef
- iterator
- rtl/tencinfo.h
# Needed for other .tab files to work
- tcvtjp1.tab
- tcvtjp2.tab
- tcvtjp3.tab
- tcvtjp4.tab
- tcvtjp5.tab
- tcvtkr1.tab
- tcvtkr2.tab
- tcvtkr4.tab
- tcvtkr5.tab
- tcvtscn1.tab
- tcvtscn2.tab
- tcvtscn3.tab
- tcvtscn4.tab
- tcvtscn5.tab
- tcvttcn1.tab
- tcvttcn2.tab

View file

@ -30,11 +30,9 @@
#endif
#ifdef UNX
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include <string>
@ -43,13 +41,11 @@
#include <cppunittester/protectorfactory.hxx>
#include <osl/module.h>
#include <osl/module.hxx>
#include <osl/process.h>
#include <osl/thread.h>
#include <rtl/character.hxx>
#include <rtl/process.h>
#include <rtl/string.h>
#include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/textcvt.h>
#include <rtl/ustring.hxx>
#include <sal/main.h>
@ -64,7 +60,6 @@
#include <cppunit/plugin/DynamicLibraryManagerException.h>
#include <cppunit/portability/Stream.h>
#include <memory>
#include <boost/algorithm/string.hpp>
#include <algorithm>

View file

@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <osl/module.h>
#include <osl/module.hxx>

View file

@ -23,7 +23,6 @@
#include "alloc_impl.hxx"
#include <rtllifecycle.h>
#include <sal/macros.h>
#include <cassert>
#include <string.h>

View file

@ -17,17 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "alloc_impl.hxx"
#include <rtl/alloc.h>
#include <sal/log.hxx>
#include <sal/macros.h>
#include <algorithm>
#include <cassert>
#include <string.h>
#include <stdio.h>
#include <rtllifecycle.h>
#include <oslmemory.h>
void* SAL_CALL rtl_allocateMemory(sal_Size n) SAL_THROW_EXTERN_C()

View file

@ -16,25 +16,20 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <config_features.h>
#include <config_folders.h>
#include <rtl/bootstrap.h>
#include <rtl/bootstrap.hxx>
#include <osl/diagnose.h>
#include <osl/module.h>
#include <osl/process.h>
#include <osl/file.hxx>
#include <osl/mutex.hxx>
#include <osl/profile.hxx>
#include <osl/security.hxx>
#include <rtl/alloc.h>
#include <rtl/string.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustring.hxx>
#include <rtl/byteseq.hxx>
#include <rtl/malformeduriexception.hxx>
#include <rtl/uri.hxx>
#include <sal/log.hxx>
#include <o3tl/lru_map.hxx>
#include <o3tl/string_view.hxx>

View file

@ -19,14 +19,10 @@
#include <string.h>
#include <o3tl/safeint.hxx>
#include <sal/types.h>
#include <rtl/alloc.h>
#include <rtl/cipher.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <limits>
#if defined LIBO_CIPHER_OPENSSL_BACKEND
#include <openssl/evp.h>

View file

@ -24,7 +24,6 @@
#include "hash.hxx"
#include "strimp.hxx"
#include <osl/diagnose.h>
#include <sal/macros.h>
namespace {

View file

@ -17,11 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <stdlib.h>
#include <rtl/locale.h>
#include <osl/diagnose.h>
#include <rtllifecycle.h>
#include <memory>
#include <unordered_map>

View file

@ -19,7 +19,6 @@
#include <rtl/math.h>
#include <o3tl/safeint.hxx>
#include <osl/diagnose.h>
#include <rtl/character.hxx>
#include <rtl/math.hxx>
@ -30,8 +29,6 @@
#include <cmath>
#include <float.h>
#include <limits>
#include <limits.h>
#include <math.h>
#include <memory>
#include <stdlib.h>

View file

@ -17,11 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <string.h>
#include <osl/interlck.h>
#include <rtl/strbuf.hxx>
#include "strimp.hxx"
#include <config_probes.h>
#include <rtl/strbuf.h>
#if USE_SDT_PROBES
#define RTL_LOG_STRING_BITS 8

View file

@ -22,7 +22,6 @@
#include <cassert>
#include <cstdlib>
#include <osl/interlck.h>
#include <osl/diagnose.h>
#include <rtl/tencinfo.h>

View file

@ -17,12 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <string.h>
#include <osl/interlck.h>
#include <osl/diagnose.h>
#include <rtl/character.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustrbuf.h>
#include "strimp.hxx"
#if USE_SDT_PROBES

View file

@ -22,20 +22,15 @@
#include <cassert>
#include <cstdlib>
#include <limits>
#include <stdexcept>
#include <string>
#include <config_options.h>
#include <o3tl/intcmp.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <osl/interlck.h>
#include <osl/mutex.h>
#include <rtl/tencinfo.h>
#include <string.h>
#include <sal/alloca.h>
#include <sal/log.hxx>
#include "hash.hxx"

View file

@ -29,7 +29,6 @@
#include "convertbig5hkscs.hxx"
#include "converter.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -28,8 +28,6 @@
#include "context.hxx"
#include "converter.hxx"
#include "converteuctw.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -28,8 +28,6 @@
#include "context.hxx"
#include "converter.hxx"
#include "convertgb18030.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -12,7 +12,6 @@
#include <cassert>
#include "converter.hxx"
#include "unichars.hxx"
#include "convertisciidevangari.hxx"
#include "convertsinglebytetobmpunicode.hxx"

View file

@ -28,7 +28,6 @@
#include "converter.hxx"
#include "convertiso2022cn.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -28,7 +28,6 @@
#include "converter.hxx"
#include "convertiso2022jp.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -28,7 +28,6 @@
#include "converter.hxx"
#include "convertiso2022kr.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -29,7 +29,6 @@
#include "context.hxx"
#include "converter.hxx"
#include "convertsinglebytetobmpunicode.hxx"
#include "unichars.hxx"
sal_Size rtl_textenc_convertSingleByteToBmpUnicode(
void const * data, SAL_UNUSED_PARAMETER void *, char const * srcBuf,

View file

@ -27,8 +27,6 @@
#include "converter.hxx"
#include "tcvtutf8.hxx"
#include "tenchelp.hxx"
#include "unichars.hxx"
namespace {

View file

@ -19,7 +19,6 @@
#include <sal/config.h>
#include <cstddef>
#include <cstring>
#include <rtl/tencinfo.h>

View file

@ -23,21 +23,16 @@
#include <sal/config.h>
#include <cstddef>
#include <cstdlib>
#include <osl/module.hxx>
#include <rtl/textenc.h>
#include <rtl/tencinfo.h>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <sal/macros.h>
#include <sal/types.h>
#include "convertsimple.hxx"
#include "gettextencodingdata.hxx"
#include "tcvtbyte.hxx"
#include "tcvtutf8.hxx"
#include "tenchelp.hxx"