Skip to content

Commit

Permalink
[dev] Clean up unnecessary include
Browse files Browse the repository at this point in the history
  • Loading branch information
shijie.chen authored and wengxt committed Mar 18, 2024
1 parent cd099d3 commit 3b10305
Show file tree
Hide file tree
Showing 46 changed files with 0 additions and 125 deletions.
5 changes: 0 additions & 5 deletions gui/customphraseeditor/customphraseeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@
#include "customphraseeditor.h"
#include "customphrasemodel.h"
#include "editordialog.h"
#include <QLineEdit>
#include <QObject>
#include <QRegularExpressionValidator>
#include <QSpinBox>
#include <QStyledItemDelegate>
#include <QTextEdit>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/stringutils.h>
#include <fcntl.h>
#include <qdesktopservices.h>
#include <qfilesystemwatcher.h>
#include <qmessagebox.h>
Expand Down
4 changes: 0 additions & 4 deletions gui/customphraseeditor/customphrasemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
*
*/
#include "customphrasemodel.h"
#include <QApplication>
#include <QFile>
#include <QFutureWatcher>
#include <QtConcurrentRun>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream_buffer.hpp>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/stringutils.h>
#include <fcitx-utils/utf8.h>
#include <fcntl.h>
#include <qfuturewatcher.h>
#include <qnamespace.h>
Expand Down
4 changes: 0 additions & 4 deletions gui/customphraseeditor/customphrasemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
#include "../../im/pinyin/customphrase.h"
#include <QAbstractTableModel>
#include <QFutureWatcher>
#include <QSet>
#include <QTextStream>
#include <qfuturewatcher.h>
#include <vector>

namespace fcitx {

Expand Down
1 change: 0 additions & 1 deletion gui/customphraseeditor/editordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

#include "editordialog.h"
#include <fcitx-utils/i18n.h>

namespace fcitx {
EditorDialog::EditorDialog(QWidget *parent) : QDialog(parent) { setupUi(this); }
Expand Down
1 change: 0 additions & 1 deletion gui/customphraseeditor/editordialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define _QUICKPHRASE_EDITOR_EDITORDIALOG_H_

#include "ui_editordialog.h"
#include <QDialog>

namespace fcitx {
class EditorDialog : public QDialog, public Ui::EditorDialog {
Expand Down
6 changes: 0 additions & 6 deletions gui/pinyindictmanager/browserdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@
*/

#include "browserdialog.h"
#include "config.h"
#include "filedownloader.h"
#include "guicommon.h"
#include <QDebug>
#include <QIcon>
#include <QMessageBox>
#include <QTemporaryFile>
#include <QUrl>
#include <QUrlQuery>
#include <fcitx-utils/i18n.h>

Expand Down
4 changes: 0 additions & 4 deletions gui/pinyindictmanager/browserdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
#ifndef _PINYINDICTMANAGER_BROWSERDIALOG_H_
#define _PINYINDICTMANAGER_BROWSERDIALOG_H_

#include "config.h"
#ifdef USE_WEBKIT
#include "ui_browserdialog_webkit.h"
#else
#include "ui_browserdialog.h"
#endif
#include <QDialog>
#include <QMessageBox>
#include <QUrl>

namespace fcitx {

Expand Down
2 changes: 0 additions & 2 deletions gui/pinyindictmanager/filedownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
*
*/

#include <QTemporaryFile>

#include "filedownloader.h"
#include "guicommon.h"
#include <fcitx-utils/i18n.h>

namespace fcitx {
Expand Down
5 changes: 0 additions & 5 deletions gui/pinyindictmanager/filedownloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
#define _PINYINDICTMANAGER_FILEDOWNLOADER_H_

#include "pipelinejob.h"
#include <QByteArray>
#include <QMessageBox>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QObject>
#include <QTemporaryFile>

namespace fcitx {
Expand Down
2 changes: 0 additions & 2 deletions gui/pinyindictmanager/filelistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
*/

#include "filelistmodel.h"
#include <QDebug>
#include <QFile>
#include <fcitx-utils/standardpath.h>
#include <fcitxqti18nhelper.h>
#include <fcntl.h>

namespace fcitx {
Expand Down
1 change: 0 additions & 1 deletion gui/pinyindictmanager/filelistmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define _PINYINDICTMANAGER_FILELISTMODEL_H_

#include <QAbstractListModel>
#include <QStringList>

namespace fcitx {

Expand Down
3 changes: 0 additions & 3 deletions gui/pinyindictmanager/pinyindictmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
*/
#include "pinyindictmanager.h"
#include "config.h"
#include "log.h"
#include "processrunner.h"
#include "renamefile.h"
#include <QDesktopServices>
#include <QFileDialog>
#include <QInputDialog>
#include <QMenu>
#include <QMessageBox>
#include <QTemporaryFile>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>

Expand Down
2 changes: 0 additions & 2 deletions gui/pinyindictmanager/pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#define _PINYINDICTMANAGER_PIPELINE_H_

#include "pipelinejob.h"
#include <QObject>
#include <QVector>

namespace fcitx {

Expand Down
1 change: 0 additions & 1 deletion gui/pinyindictmanager/pipelinejob.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define _PINYINDICTMANAGER_PIPELINEJOB_H_

#include <QMessageBox>
#include <QObject>

namespace fcitx {

Expand Down
4 changes: 0 additions & 4 deletions gui/pinyindictmanager/processrunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
*
*/
#include "processrunner.h"
#include "guicommon.h"
#include "log.h"
#include <QDebug>
#include <QProcess>
#include <QTemporaryFile>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>

namespace fcitx {

Expand Down
3 changes: 0 additions & 3 deletions gui/pinyindictmanager/processrunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
#define _PINYINDICTMANAGER_PROCESSRUNNER_H_

#include "pipelinejob.h"
#include <QMessageBox>
#include <QObject>
#include <QProcess>
#include <QTemporaryFile>

namespace fcitx {

Expand Down
6 changes: 0 additions & 6 deletions gui/pinyindictmanager/renamefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
*
*/
#include "renamefile.h"
#include "guicommon.h"
#include "log.h"
#include <QDebug>
#include <QProcess>
#include <QTemporaryFile>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>

namespace fcitx {

Expand Down
6 changes: 0 additions & 6 deletions gui/pinyindictmanager/renamefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
#define _PINYINDICTMANAGER_RENAMEFILE_H_

#include "pipelinejob.h"
#include <QFutureWatcher>
#include <QMessageBox>
#include <QObject>
#include <QProcess>
#include <QTemporaryFile>
#include <QtConcurrent>

namespace fcitx {

Expand Down
2 changes: 0 additions & 2 deletions im/pinyin/customphrase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <charconv>
#include <ctime>
#include <fcitx-utils/charutils.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/stringutils.h>
#include <fmt/chrono.h>
#include <istream>
Expand All @@ -18,7 +17,6 @@
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_map>

namespace fcitx {

Expand Down
1 change: 0 additions & 1 deletion im/pinyin/pinyin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include <fcitx/userinterfacemanager.h>
#include <fcntl.h>
#include <fmt/chrono.h>
#include <fmt/format.h>
#include <libime/core/historybigram.h>
#include <libime/core/userlanguagemodel.h>
#include <libime/pinyin/pinyincontext.h>
Expand Down
6 changes: 0 additions & 6 deletions im/pinyin/pinyin.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@
#include <fcitx-utils/event.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/misc.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx/action.h>
#include <fcitx/addonfactory.h>
#include <fcitx/addonmanager.h>
#include <fcitx/event.h>
#include <fcitx/inputcontext.h>
#include <fcitx/inputcontextproperty.h>
#include <fcitx/inputmethodengine.h>
#include <fcitx/instance.h>
#include <libime/pinyin/pinyincontext.h>
#include <libime/pinyin/pinyinime.h>
#include <libime/pinyin/pinyinprediction.h>
#include <memory>
Expand Down Expand Up @@ -254,8 +250,6 @@ FCITX_CONFIGURATION(
HiddenOption<bool> firstRun{this, "FirstRun", "FirstRun", true};)

class PinyinState;
struct EventSourceTime;
class CandidateList;

class PinyinEngine final : public InputMethodEngineV3 {
public:
Expand Down
8 changes: 0 additions & 8 deletions im/table/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
#include "context.h"
#include "ime.h"
#include "state.h"
#include <boost/algorithm/string.hpp>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream.hpp>
#include <fcitx-config/iniparser.h>
#include <fcitx-utils/charutils.h>
#include <fcitx-utils/event.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/utf8.h>
#include <fcitx/event.h>
#include <fcitx/inputcontext.h>
#include <fcitx/inputcontextmanager.h>
Expand All @@ -27,15 +24,10 @@
#include <fcitx/inputpanel.h>
#include <fcitx/userinterfacemanager.h>
#include <fcntl.h>
#include <libime/core/historybigram.h>
#include <libime/core/userlanguagemodel.h>
#include <libime/pinyin/pinyinencoder.h>
#include <libime/pinyin/shuangpinprofile.h>
#include <libime/table/tablebaseddictionary.h>
#include <map>
#include <memory>
#include <quickphrase_public.h>
#include <unordered_map>

namespace fcitx {

Expand Down
1 change: 0 additions & 1 deletion im/table/ime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/stringutils.h>
#include <fcntl.h>
#include <libime/core/utils.h>
#include <libime/table/tablebaseddictionary.h>
#include <libime/table/tableoptions.h>

Expand Down
2 changes: 0 additions & 2 deletions im/table/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
#include <fcitx/inputcontext.h>
#include <fcitx/inputpanel.h>
#include <fmt/core.h>
#include <fmt/format.h>
#include <libime/core/historybigram.h>
#include <libime/pinyin/pinyinencoder.h>
#include <libime/pinyin/shuangpinprofile.h>

namespace fcitx {

Expand Down
1 change: 0 additions & 1 deletion im/table/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ enum class TableMode {
Punctuation,
};

struct EventSourceTime;

class TableState : public InputContextProperty {
public:
Expand Down
1 change: 0 additions & 1 deletion modules/chttrans/chttrans-native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*
*/
#include "chttrans-native.h"
#include "config.h"
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream_buffer.hpp>
#include <fcitx-utils/standardpath.h>
Expand Down
2 changes: 0 additions & 2 deletions modules/chttrans/chttrans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#include "chttrans.h"
#include <fcitx-config/iniparser.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/utf8.h>
#include <fcitx/addonfactory.h>
#include <fcitx/addonmanager.h>
#include <fcitx/inputmethodentry.h>
#include <fcntl.h>
#ifdef ENABLE_OPENCC
#include "chttrans-opencc.h"
#endif
Expand Down
7 changes: 0 additions & 7 deletions modules/cloudpinyin/cloudpinyin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@

#include "cloudpinyin.h"
#include <fcitx-config/iniparser.h>
#include <fcitx-utils/fs.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/unixfd.h>
#include <fcitx-utils/utf8.h>
#include <fcitx/addonmanager.h>
#include <fcntl.h>
#include <thread>
#include <unistd.h>

using namespace fcitx;

Expand Down
2 changes: 0 additions & 2 deletions modules/cloudpinyin/cloudpinyin.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
#include <fcitx-config/iniparser.h>
#include <fcitx-utils/eventdispatcher.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/misc.h>
#include <fcitx/addonfactory.h>
#include <fcitx/addoninstance.h>
#include <fcitx/instance.h>

FCITX_CONFIG_ENUM(CloudPinyinBackend, Google, GoogleCN, Baidu);
FCITX_CONFIGURATION(
Expand Down
3 changes: 0 additions & 3 deletions modules/cloudpinyin/fetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include "cloudpinyin.h"
#include <fcitx-utils/event.h>
#include <fcitx-utils/eventdispatcher.h>
#include <fcitx-utils/fs.h>
#include <fcntl.h>
#include <unistd.h>

using namespace fcitx;

Expand Down
Loading

0 comments on commit 3b10305

Please sign in to comment.