From 48e79e529057b881805d0e5cc5e0dae07f530a0a Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 3 Nov 2019 23:04:59 +0100 Subject: tdf#42949 Fix IWYU warnings in linguistic/ Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ida2903087ae5752a65c0ce099449645d91a83f29 Reviewed-on: https://gerrit.libreoffice.org/81971 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- linguistic/IwyuFilter_linguistic.yaml | 6 ++++++ linguistic/inc/iprcache.hxx | 3 --- linguistic/source/convdic.cxx | 7 ------- linguistic/source/convdic.hxx | 3 +-- linguistic/source/convdiclist.cxx | 8 -------- linguistic/source/convdiclist.hxx | 3 +-- linguistic/source/convdicxml.cxx | 9 --------- linguistic/source/convdicxml.hxx | 5 ----- linguistic/source/dicimp.cxx | 5 +---- linguistic/source/dicimp.hxx | 4 +--- linguistic/source/dlistimp.cxx | 3 --- linguistic/source/dlistimp.hxx | 1 - linguistic/source/gciterator.cxx | 17 +++-------------- linguistic/source/gciterator.hxx | 5 ++--- linguistic/source/hhconvdic.cxx | 6 ------ linguistic/source/hhconvdic.hxx | 6 ------ linguistic/source/hyphdsp.cxx | 6 +++--- linguistic/source/hyphdsp.hxx | 5 ----- linguistic/source/hyphdta.cxx | 3 --- linguistic/source/iprcache.cxx | 3 --- linguistic/source/lngopt.cxx | 7 ------- linguistic/source/lngopt.hxx | 4 ---- linguistic/source/lngreg.cxx | 3 --- linguistic/source/lngsvcmgr.cxx | 2 -- linguistic/source/lngsvcmgr.hxx | 3 --- linguistic/source/misc.cxx | 5 ----- linguistic/source/misc2.cxx | 7 ------- linguistic/source/spelldsp.cxx | 4 ---- linguistic/source/spelldsp.hxx | 7 +------ linguistic/source/spelldta.cxx | 3 +-- linguistic/source/thesdsp.cxx | 4 +--- linguistic/source/thesdsp.hxx | 14 ++++---------- 32 files changed, 25 insertions(+), 146 deletions(-) create mode 100644 linguistic/IwyuFilter_linguistic.yaml diff --git a/linguistic/IwyuFilter_linguistic.yaml b/linguistic/IwyuFilter_linguistic.yaml new file mode 100644 index 000000000000..8e69f24d9471 --- /dev/null +++ b/linguistic/IwyuFilter_linguistic.yaml @@ -0,0 +1,6 @@ +--- +assumeFilename: linguistic/source/lngsvcmgr.cxx +blacklist: + linguistic/source/hyphdsp.cxx: + # Needed for direct member access + - com/sun/star/linguistic2/XLinguProperties.hpp diff --git a/linguistic/inc/iprcache.hxx b/linguistic/inc/iprcache.hxx index 10c47b5c7df7..434a4dc21635 100644 --- a/linguistic/inc/iprcache.hxx +++ b/linguistic/inc/iprcache.hxx @@ -23,15 +23,12 @@ #include #include -#include #include -#include #include #include #include #include -#include #include #include diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index 3e9ec1ba7152..1a7b559a203b 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -35,19 +34,13 @@ #include #include -#include #include #include #include -#include #include #include -#include #include -#include #include -#include -#include #include #include #include diff --git a/linguistic/source/convdic.hxx b/linguistic/source/convdic.hxx index 1a93599eee6c..23d51f87f440 100644 --- a/linguistic/source/convdic.hxx +++ b/linguistic/source/convdic.hxx @@ -25,12 +25,11 @@ #include #include #include +#include #include #include #include -#include -#include "defs.hxx" // text conversion dictionary extension #define CONV_DIC_EXT "tcd" diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index d110dd4afe60..79ea6f639fab 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -24,32 +24,24 @@ #include #include #include -#include #include -#include #include #include -#include #include #include #include #include #include -#include #include #include -#include #include #include #include #include -#include -#include #include #include "convdic.hxx" #include "convdiclist.hxx" -#include "defs.hxx" #include "hhconvdic.hxx" #include "lngreg.hxx" #include diff --git a/linguistic/source/convdiclist.hxx b/linguistic/source/convdiclist.hxx index 971be9eae8af..52ebbd4285a1 100644 --- a/linguistic/source/convdiclist.hxx +++ b/linguistic/source/convdiclist.hxx @@ -24,11 +24,10 @@ #include #include #include -#include +#include #include #include -#include "lngopt.hxx" class ConvDicNameContainer; diff --git a/linguistic/source/convdicxml.cxx b/linguistic/source/convdicxml.cxx index 55f51404a929..f4165abcadf8 100644 --- a/linguistic/source/convdicxml.cxx +++ b/linguistic/source/convdicxml.cxx @@ -19,19 +19,11 @@ #include #include -#include -#include -#include #include #include -#include #include -#include #include -#include -#include -#include #include #include #include @@ -41,7 +33,6 @@ #include "convdic.hxx" #include "convdicxml.hxx" #include -#include "defs.hxx" using namespace std; using namespace utl; diff --git a/linguistic/source/convdicxml.hxx b/linguistic/source/convdicxml.hxx index 62ec13a29031..39c3c8624e95 100644 --- a/linguistic/source/convdicxml.hxx +++ b/linguistic/source/convdicxml.hxx @@ -20,9 +20,7 @@ #ifndef INCLUDED_LINGUISTIC_SOURCE_CONVDICXML_HXX #define INCLUDED_LINGUISTIC_SOURCE_CONVDICXML_HXX -#include #include -#include #include #include #include @@ -30,10 +28,7 @@ #include #include #include -#include #include -#include -#include "defs.hxx" class ConvDic; diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 423923a0ba0a..328871f0bd7a 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -20,9 +20,9 @@ #include #include "dicimp.hxx" -#include "hyphdsp.hxx" #include #include +#include #include #include #include @@ -35,12 +35,9 @@ #include #include -#include #include -#include #include #include -#include #include #include diff --git a/linguistic/source/dicimp.hxx b/linguistic/source/dicimp.hxx index 99560ff8898a..37221736d70c 100644 --- a/linguistic/source/dicimp.hxx +++ b/linguistic/source/dicimp.hxx @@ -22,15 +22,13 @@ #include #include -#include #include #include -#include +#include #include #include "defs.hxx" -#include #define DIC_MAX_ENTRIES 30000 diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index c876a5eb3c7c..d97957a304b9 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -32,12 +31,10 @@ #include #include #include -#include #include #include #include #include -#include #include #include #include diff --git a/linguistic/source/dlistimp.hxx b/linguistic/source/dlistimp.hxx index 73de31b7db8c..3039f6e32448 100644 --- a/linguistic/source/dlistimp.hxx +++ b/linguistic/source/dlistimp.hxx @@ -25,7 +25,6 @@ #include #include -#include #include #include diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index d0c51f90b464..81c1ce99d9c4 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -18,13 +18,12 @@ */ #include -#include -#include +#include +#include #include -#include -#include #include #include +#include #include #include #include @@ -35,23 +34,17 @@ #include #include #include -#include #include #include -#include #include #include #include #include -#include #include #include #include #include -#include -#include -#include #include #include #include @@ -60,13 +53,9 @@ #include #include -#include #include -#include #include -#include "defs.hxx" -#include "lngopt.hxx" #include "lngreg.hxx" #include "gciterator.hxx" diff --git a/linguistic/source/gciterator.hxx b/linguistic/source/gciterator.hxx index 10eb2a4186fd..b0274aeac3c9 100644 --- a/linguistic/source/gciterator.hxx +++ b/linguistic/source/gciterator.hxx @@ -27,7 +27,6 @@ #include #include #include -#include #include #include @@ -37,9 +36,9 @@ #include #include -#include #include -#include +#include +#include #include #include diff --git a/linguistic/source/hhconvdic.cxx b/linguistic/source/hhconvdic.cxx index 718a9d281f31..a57df56f122b 100644 --- a/linguistic/source/hhconvdic.cxx +++ b/linguistic/source/hhconvdic.cxx @@ -19,20 +19,15 @@ #include #include -#include #include -#include #include #include #include -#include #include -#include #include "hhconvdic.hxx" #include -#include "defs.hxx" using namespace osl; using namespace com::sun::star; @@ -45,7 +40,6 @@ using namespace linguistic; #define SN_HH_CONV_DICTIONARY "com.sun.star.linguistic2.HangulHanjaConversionDictionary" -#include #include using namespace i18n; diff --git a/linguistic/source/hhconvdic.hxx b/linguistic/source/hhconvdic.hxx index 7aa97d31fb82..ba7e671b5c58 100644 --- a/linguistic/source/hhconvdic.hxx +++ b/linguistic/source/hhconvdic.hxx @@ -20,12 +20,6 @@ #ifndef INCLUDED_LINGUISTIC_SOURCE_HHCONVDIC_HXX #define INCLUDED_LINGUISTIC_SOURCE_HHCONVDIC_HXX -#include -#include -#include - -#include -#include "defs.hxx" #include "convdic.hxx" diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx index f2665b653561..f86847008cab 100644 --- a/linguistic/source/hyphdsp.cxx +++ b/linguistic/source/hyphdsp.cxx @@ -23,10 +23,10 @@ #include #include +#include #include -#include +#include #include -#include #include #include #include @@ -38,7 +38,7 @@ #include "hyphdsp.hxx" #include -#include +#include #include "lngsvcmgr.hxx" using namespace osl; diff --git a/linguistic/source/hyphdsp.hxx b/linguistic/source/hyphdsp.hxx index 4825f745d8f4..938ab2758597 100644 --- a/linguistic/source/hyphdsp.hxx +++ b/linguistic/source/hyphdsp.hxx @@ -21,12 +21,8 @@ #define INCLUDED_LINGUISTIC_SOURCE_HYPHDSP_HXX -#include -#include -#include #include #include -#include #include #include @@ -34,7 +30,6 @@ #include #include -#include "lngopt.hxx" #include #include "defs.hxx" diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx index 3996fc5fb994..3ab4552171fa 100644 --- a/linguistic/source/hyphdta.cxx +++ b/linguistic/source/hyphdta.cxx @@ -19,14 +19,11 @@ #include -#include #include #include -#include #include -#include #include using namespace osl; diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx index f0a992bb5e20..8f81551eebeb 100644 --- a/linguistic/source/iprcache.cxx +++ b/linguistic/source/iprcache.cxx @@ -18,14 +18,11 @@ */ -#include - #include #include #include #include -#include #include using namespace osl; diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index 9473a8da2b77..e2d6d652460a 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -21,7 +21,6 @@ #include #include "lngopt.hxx" #include "lngreg.hxx" -#include #include #include #include @@ -29,18 +28,12 @@ #include #include #include -#include -#include -#include #include #include -#include -#include using namespace utl; using namespace osl; using namespace com::sun::star; -using namespace com::sun::star::container; using namespace com::sun::star::beans; using namespace com::sun::star::lang; using namespace com::sun::star::uno; diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx index 14635c5e3a48..8adb3c99c2d4 100644 --- a/linguistic/source/lngopt.hxx +++ b/linguistic/source/lngopt.hxx @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -31,11 +30,8 @@ #include #include #include -#include #include #include -#include -#include "defs.hxx" namespace com { namespace sun { namespace star { namespace beans { diff --git a/linguistic/source/lngreg.cxx b/linguistic/source/lngreg.cxx index 671aecc0f54b..37cbea265d6a 100644 --- a/linguistic/source/lngreg.cxx +++ b/linguistic/source/lngreg.cxx @@ -18,9 +18,6 @@ */ #include -#include - -#include #include "lngreg.hxx" diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index c54a212b3d3f..f8d373a6c554 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -45,7 +44,6 @@ #include #include "lngsvcmgr.hxx" -#include "lngopt.hxx" #include "lngreg.hxx" #include #include "spelldsp.hxx" diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx index eb45e321d6bc..7262d26b7f04 100644 --- a/linguistic/source/lngsvcmgr.hxx +++ b/linguistic/source/lngsvcmgr.hxx @@ -36,9 +36,6 @@ #include #include -#include -#include "defs.hxx" - class SpellCheckerDispatcher; class HyphenatorDispatcher; class ThesaurusDispatcher; diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index 3702af806e17..ef64ac9d25b3 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -18,15 +18,12 @@ */ #include -#include #include -#include #include #include #include #include #include -#include #include #include #include @@ -48,8 +45,6 @@ #include #include -#include "defs.hxx" -#include #include using namespace osl; diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx index 58b315b4392c..664812f4b279 100644 --- a/linguistic/source/misc2.cxx +++ b/linguistic/source/misc2.cxx @@ -20,14 +20,7 @@ #include #include #include -#include #include -#include -#include -#include -#include -#include -#include #include #include #include diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index 6bbc664794ef..ba0c45f08bc5 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -21,12 +21,9 @@ #include #include -#include #include -#include #include -#include #include #include #include @@ -40,7 +37,6 @@ #include "spelldsp.hxx" #include #include "lngsvcmgr.hxx" -#include using namespace osl; using namespace com::sun::star; diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx index 4c4dd7fd9c19..f9a30634d9ef 100644 --- a/linguistic/source/spelldsp.hxx +++ b/linguistic/source/spelldsp.hxx @@ -20,17 +20,12 @@ #ifndef INCLUDED_LINGUISTIC_SOURCE_SPELLDSP_HXX #define INCLUDED_LINGUISTIC_SOURCE_SPELLDSP_HXX -#include "lngopt.hxx" +#include "defs.hxx" #include #include #include -#include -#include -#include -#include #include -#include #include #include #include diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx index 0c4570073cb8..7588cb949eda 100644 --- a/linguistic/source/spelldta.cxx +++ b/linguistic/source/spelldta.cxx @@ -26,11 +26,10 @@ #include #include +#include #include -#include "lngsvcmgr.hxx" -using namespace utl; using namespace osl; using namespace com::sun::star; using namespace com::sun::star::beans; diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx index 49b33c384e75..968136898cc0 100644 --- a/linguistic/source/thesdsp.cxx +++ b/linguistic/source/thesdsp.cxx @@ -22,8 +22,6 @@ #include #include -#include -#include #include #include #include @@ -32,7 +30,7 @@ #include #include "thesdsp.hxx" -#include +#include using namespace osl; using namespace com::sun::star; diff --git a/linguistic/source/thesdsp.hxx b/linguistic/source/thesdsp.hxx index 4481099e3a59..954723417a0a 100644 --- a/linguistic/source/thesdsp.hxx +++ b/linguistic/source/thesdsp.hxx @@ -22,23 +22,17 @@ #include #include -#include -#include -#include -#include -#include -#include - -#include + +#include #include #include -#include +#include #include #include -#include "lngopt.hxx" +#include "defs.hxx" class ThesaurusDispatcher : -- cgit