From 32304d4b152e578610a4779b8e355e3ff440ccbf Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Tue, 21 Mar 2023 05:53:17 -0400 Subject: [PATCH] cleanup: remove all useless #include All Qt Headers already implicitly included it. --- bgl.cc | 1 - bgl_babylon.cc | 1 - dictdfiles.cc | 1 - dictionarybar.cc | 1 - favoritespanewidget.cc | 1 - ffmpegaudio.cc | 1 - gdappstyle.cc | 1 - history.cc | 1 - historypanewidget.cc | 1 - iconv.cc | 1 - indexedzip.cc | 1 - lsa.cc | 1 - main.cc | 1 - mainstatusbar.cc | 1 - maintabwidget.cc | 1 - sdict.cc | 1 - sounddir.cc | 1 - stardict.cc | 1 - translatebox.cc | 1 - wordlist.cc | 1 - xdxf.cc | 1 - xdxf2html.cc | 1 - zim.cc | 1 - zipsounds.cc | 1 - 24 files changed, 24 deletions(-) diff --git a/bgl.cc b/bgl.cc index 2fc4ce40..0553e646 100644 --- a/bgl.cc +++ b/bgl.cc @@ -29,7 +29,6 @@ #include #include #include -#include #if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) #include diff --git a/bgl_babylon.cc b/bgl_babylon.cc index 16bdf561..5362a45c 100644 --- a/bgl_babylon.cc +++ b/bgl_babylon.cc @@ -33,7 +33,6 @@ #include "iconv.hh" #include "htmlescape.hh" #include -#include #include "dictionary.hh" #include "wstring_qt.hh" diff --git a/dictdfiles.cc b/dictdfiles.cc index 7344cbba..730cb31d 100644 --- a/dictdfiles.cc +++ b/dictdfiles.cc @@ -20,7 +20,6 @@ #include "ftshelpers.hh" #include -#include #include diff --git a/dictionarybar.cc b/dictionarybar.cc index e8b4dbb2..e02a0a37 100644 --- a/dictionarybar.cc +++ b/dictionarybar.cc @@ -6,7 +6,6 @@ #include #include "gddebug.hh" #include "fsencoding.hh" -#include using std::vector; diff --git a/favoritespanewidget.cc b/favoritespanewidget.cc index 4bfa5daa..588992c2 100644 --- a/favoritespanewidget.cc +++ b/favoritespanewidget.cc @@ -1,7 +1,6 @@ /* This file is (c) 2017 Abs62 * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ -#include #include #include #include diff --git a/ffmpegaudio.cc b/ffmpegaudio.cc index e5460a6d..6a56c384 100644 --- a/ffmpegaudio.cc +++ b/ffmpegaudio.cc @@ -15,7 +15,6 @@ extern "C" { #include #include -#include #include #if( QT_VERSION >= QT_VERSION_CHECK( 6, 2, 0 ) ) diff --git a/gdappstyle.cc b/gdappstyle.cc index d9b31f50..76852705 100644 --- a/gdappstyle.cc +++ b/gdappstyle.cc @@ -7,7 +7,6 @@ #include #include -#include GdAppStyle::GdAppStyle(QProxyStyle * parent) : QProxyStyle(parent) {} diff --git a/history.cc b/history.cc index 866b3d1c..12f302e6 100644 --- a/history.cc +++ b/history.cc @@ -5,7 +5,6 @@ #include "config.hh" #include "atomic_rename.hh" #include -#include History::History( unsigned size, unsigned maxItemLength_ ): maxSize( size ), maxItemLength( maxItemLength_ ), addingEnabled( true ) diff --git a/historypanewidget.cc b/historypanewidget.cc index 4a67efa7..d2cde59f 100644 --- a/historypanewidget.cc +++ b/historypanewidget.cc @@ -1,7 +1,6 @@ /* This file is (c) 2013 Tvangeste * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ -#include #include #include #include diff --git a/iconv.cc b/iconv.cc index cbdc17f7..cc6a8d6f 100644 --- a/iconv.cc +++ b/iconv.cc @@ -5,7 +5,6 @@ #include #include #include -#include #include "wstring_qt.hh" char const * const Iconv::GdWchar = "UTF-32LE"; diff --git a/indexedzip.cc b/indexedzip.cc index e2fb32a4..3eb0ee28 100644 --- a/indexedzip.cc +++ b/indexedzip.cc @@ -13,7 +13,6 @@ #else #include #endif -#include using namespace BtreeIndexing; using std::vector; diff --git a/lsa.cc b/lsa.cc index 6ccffc6a..6e17fdae 100644 --- a/lsa.cc +++ b/lsa.cc @@ -22,7 +22,6 @@ #include #include #include -#include #include #include "utils.hh" diff --git a/main.cc b/main.cc index b8cac235..479d36d8 100644 --- a/main.cc +++ b/main.cc @@ -28,7 +28,6 @@ #include "atomic_rename.hh" #include #include -#include #include #include #include diff --git a/mainstatusbar.cc b/mainstatusbar.cc index 1c539e14..5955079f 100644 --- a/mainstatusbar.cc +++ b/mainstatusbar.cc @@ -6,7 +6,6 @@ #include #include #include -#include #include #include diff --git a/maintabwidget.cc b/maintabwidget.cc index 0d15f9d1..a6ddf9ad 100644 --- a/maintabwidget.cc +++ b/maintabwidget.cc @@ -2,7 +2,6 @@ * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ #include "maintabwidget.hh" -#include #include #include diff --git a/sdict.cc b/sdict.cc index 88423f99..74c76b40 100644 --- a/sdict.cc +++ b/sdict.cc @@ -26,7 +26,6 @@ #include #include #include -#include #include #if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) #include diff --git a/sounddir.cc b/sounddir.cc index 3eb9e170..f63b4579 100644 --- a/sounddir.cc +++ b/sounddir.cc @@ -17,7 +17,6 @@ #include #include #include -#include namespace SoundDir { diff --git a/stardict.cc b/stardict.cc index b4d70b5b..a757ea69 100644 --- a/stardict.cc +++ b/stardict.cc @@ -41,7 +41,6 @@ #include #include #include -#include #if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) #include #else diff --git a/translatebox.cc b/translatebox.cc index 5f7652bf..32c56e36 100644 --- a/translatebox.cc +++ b/translatebox.cc @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/wordlist.cc b/wordlist.cc index 2d95cfca..f181a211 100644 --- a/wordlist.cc +++ b/wordlist.cc @@ -1,7 +1,6 @@ /* This file is (c) 2013 Tvangeste * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ -#include #include "wordlist.hh" diff --git a/xdxf.cc b/xdxf.cc index 6fabadde..5f2f5c19 100644 --- a/xdxf.cc +++ b/xdxf.cc @@ -37,7 +37,6 @@ #include #include #include -#include #include #if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) #include diff --git a/xdxf2html.cc b/xdxf2html.cc index 2b1796ad..4bd18e9d 100644 --- a/xdxf2html.cc +++ b/xdxf2html.cc @@ -13,7 +13,6 @@ #include "filetype.hh" #include "htmlescape.hh" #include "utils.hh" -#include #include "xdxf.hh" #include diff --git a/zim.cc b/zim.cc index 9057e29e..3dbe7fe1 100644 --- a/zim.cc +++ b/zim.cc @@ -33,7 +33,6 @@ #include #include #include -#include #include diff --git a/zipsounds.cc b/zipsounds.cc index aabd582e..f0e8049b 100644 --- a/zipsounds.cc +++ b/zipsounds.cc @@ -18,7 +18,6 @@ #include #include #include -#include #ifdef _MSC_VER #include