Skip to content

Commit

Permalink
[dev] Delete useless lines
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwozhonghua126 committed Mar 20, 2024
1 parent 9b64784 commit 6c1a5dd
Show file tree
Hide file tree
Showing 56 changed files with 0 additions and 122 deletions.
6 changes: 0 additions & 6 deletions plugins/chewing/src/chewingadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@

#include "chewingadapter.h"

#include <iostream>

#include <iconv.h>
#include <string>
#include <string.h>

#include <QChar>
#include <QCoreApplication>

#define CHEWING_MAX_LEN 32

Expand Down
1 change: 0 additions & 1 deletion plugins/chewing/src/chewingadapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define CHEWINGADAPTER_H

#include <QObject>
#include <QStringList>

#include "chewing.h"

Expand Down
1 change: 0 additions & 1 deletion plugins/chewing/src/chewinglanguagefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define CHEWINGLANGUAGEFEATURES_H

#include "abstractlanguagefeatures.h"
#include <QObject>

class ChewingLanguageFeatures : public QObject, public AbstractLanguageFeatures
{
Expand Down
1 change: 0 additions & 1 deletion plugins/chewing/src/chewingplugin.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "chewingplugin.h"
#include "chewinglanguagefeatures.h"

#include <QDebug>

ChewingPlugin::ChewingPlugin(QObject *parent) :
AbstractLanguagePlugin(parent)
Expand Down
4 changes: 0 additions & 4 deletions plugins/chewing/src/chewingplugin.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#ifndef CHEWINGPLUGIN_H
#define CHEWINGPLUGIN_H

#include <QObject>
#include <QStringList>
#include <QThread>
#include "languageplugininterface.h"
#include "abstractlanguageplugin.h"

#include "chewingadapter.h"
#include <iostream>

class ChewingLanguageFeatures;

Expand Down
1 change: 0 additions & 1 deletion plugins/ko/src/koreanlanguagefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define KOREANLANGUAGEFEATURES_H

#include "abstractlanguagefeatures.h"
#include <QObject>

class KoreanLanguageFeatures : public QObject, public AbstractLanguageFeatures
{
Expand Down
1 change: 0 additions & 1 deletion plugins/ko/src/koreanplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "koreanlanguagefeatures.h"
#include "spellpredictworker.h"

#include <QDebug>

KoreanPlugin::KoreanPlugin(QObject *parent) :
AbstractLanguagePlugin(parent)
Expand Down
5 changes: 0 additions & 5 deletions plugins/ko/src/koreanplugin.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#ifndef KOREANPLUGIN_H
#define KOREANPLUGIN_H

#include <QObject>
#include <QStringList>
#include "languageplugininterface.h"
#include "abstractlanguageplugin.h"
#include "spellchecker.h"
#include "spellpredictworker.h"

#include <iostream>

class KoreanLanguageFeatures;

Expand Down
1 change: 0 additions & 1 deletion plugins/pinyin/src/chineselanguagefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define CHINESELANGUAGEFEATURES_H

#include "abstractlanguagefeatures.h"
#include <QObject>

class ChineseLanguageFeatures : public QObject, public AbstractLanguageFeatures
{
Expand Down
6 changes: 0 additions & 6 deletions plugins/pinyin/src/pinyinadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@
#include <algorithm>
#include <iterator>

#include <iconv.h>
#include <string>
#include <string.h>

#include <QDebug>
#include <QLoggingCategory>
#include <QCoreApplication>
#include <QRegExp>

#define MAX_SUGGESTIONS 100

Expand Down
2 changes: 0 additions & 2 deletions plugins/pinyin/src/pinyinadapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef PINYINADAPTER_H
#define PINYINADAPTER_H

#include <QObject>
#include <QStringList>

#include "pinyin.h"
#include "abstractlanguageplugin.h"
Expand Down
3 changes: 0 additions & 3 deletions plugins/pinyin/src/pinyinplugin.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#ifndef PINYINPLUGIN_H
#define PINYINPLUGIN_H

#include <QObject>
#include <QStringList>
#include <QThread>
#include "languageplugininterface.h"
#include "abstractlanguageplugin.h"

#include "pinyinadapter.h"
#include <iostream>

class ChineseLanguageFeatures;

Expand Down
1 change: 0 additions & 1 deletion plugins/th/src/thailanguagefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define THAILANGUAGEFEATURES_H

#include "abstractlanguagefeatures.h"
#include <QObject>

class ThaiLanguageFeatures : public QObject, public AbstractLanguageFeatures
{
Expand Down
2 changes: 0 additions & 2 deletions plugins/th/src/thaiplugin.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef THAIPLUGIN_H
#define THAIPLUGIN_H

#include <QObject>
#include "languageplugininterface.h"
#include "abstractlanguageplugin.h"

class ThaiLanguageFeatures;
Expand Down
5 changes: 0 additions & 5 deletions plugins/westernsupport/spellchecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ class Hunspell
};
#endif

#include <QFile>
#include <QTextStream>
#include <QTextCodec>
#include <QStringList>
#include <QDebug>
#include <QDir>

//! \class SpellChecker
Expand Down
1 change: 0 additions & 1 deletion plugins/westernsupport/spellpredictworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#include "spellpredictworker.h"

#include <QDebug>

SpellPredictWorker::SpellPredictWorker(QObject *parent)
: QObject(parent)
Expand Down
3 changes: 0 additions & 3 deletions plugins/westernsupport/spellpredictworker.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
#include "spellchecker.h"
#include "languageplugininterface.h"

#include <QObject>
#include <QStringList>
#include <QMap>

class SpellPredictWorker : public QObject
{
Expand Down
1 change: 0 additions & 1 deletion plugins/westernsupport/westernlanguagefeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "westernlanguagefeatures.h"

#include <QtCore>

WesternLanguageFeatures::WesternLanguageFeatures(QObject *parent) :
QObject(parent)
Expand Down
1 change: 0 additions & 1 deletion plugins/westernsupport/westernlanguagefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define MALIITKEYBOARD_LANGUAGEFEATURES_H

#include "abstractlanguagefeatures.h"
#include <QObject>

class WesternLanguageFeatures : public QObject, public AbstractLanguageFeatures
{
Expand Down
1 change: 0 additions & 1 deletion plugins/westernsupport/westernlanguagesplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "westernlanguagefeatures.h"
#include "spellpredictworker.h"

#include <QDebug>

WesternLanguagesPlugin::WesternLanguagesPlugin(QObject *parent) :
AbstractLanguagePlugin(parent)
Expand Down
5 changes: 0 additions & 5 deletions plugins/westernsupport/westernlanguagesplugin.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#ifndef WESTERNLANGUAGESPLUGIN_H
#define WESTERNLANGUAGESPLUGIN_H

#include <QObject>

#include "languageplugininterface.h"
#include "westernlanguagefeatures.h"
#include "spellchecker.h"
#include "abstractlanguageplugin.h"

#include "spellpredictworker.h"

class WesternLanguageFeatures;
class SpellPredictWorker;
Expand Down
1 change: 0 additions & 1 deletion src/3rdparty/QGSettings/qconftypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "qconftypes.h"

#include <QStringList>

/* This file is responsible for conversion between C++ values and GVariant *.
*
Expand Down
1 change: 0 additions & 1 deletion src/3rdparty/QGSettings/qgsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define __QGSETTINGS_H__

#include <QObject>
#include <QStringList>

/**
* @brief QGSettings provides access to application settings stored with GSettings.
Expand Down
1 change: 0 additions & 1 deletion src/lib/logic/abstractwordengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#include "models/text.h"
#include "models/wordcandidate.h"
#include <QtCore>

class AbstractLanguageFeatures;

Expand Down
3 changes: 0 additions & 3 deletions src/lib/logic/eventhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,17 @@
#ifndef MALIIT_KEYBOARD_EVENTHANDLER_H
#define MALIIT_KEYBOARD_EVENTHANDLER_H

#include <QtCore>
#include "models/wordcandidate.h"

namespace MaliitKeyboard {

class Key;

namespace Model {
class Layout;
}

namespace Logic {

class LayoutUpdater;

class EventHandler
: public QObject
Expand Down
3 changes: 0 additions & 3 deletions src/lib/logic/wordengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@
#ifndef MALIIT_KEYBOARD_WORDENGINE_H
#define MALIIT_KEYBOARD_WORDENGINE_H

#include "models/text.h"
#include "logic/abstractwordengine.h"
#include "logic/abstractlanguagefeatures.h"
#include "languageplugininterface.h"

#include <QtCore>
#include <QMutex>

namespace MaliitKeyboard {
namespace Logic {
Expand Down
1 change: 0 additions & 1 deletion src/lib/models/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include "models/area.h"

#include <QtCore>

namespace MaliitKeyboard {

Expand Down
3 changes: 0 additions & 3 deletions src/lib/models/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
#include "layout.h"
#include "keyarea.h"
#include "key.h"
#include "keydescription.h"

#include <QtGui/QGuiApplication>
#include <QScreen>

namespace MaliitKeyboard {
namespace Model {
Expand Down
3 changes: 0 additions & 3 deletions src/lib/models/layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,13 @@
#define MALIIT_KEYBOARD_LAYOUT_H

#include "models/key.h"
#include <QtCore>

namespace MaliitKeyboard {

class KeyArea;


namespace Logic {
class LayoutHelper;
class LayoutUpdater;
}

namespace Model {
Expand Down
1 change: 0 additions & 1 deletion src/lib/models/wordcandidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include "models/area.h"

#include <QtCore>

namespace MaliitKeyboard {

Expand Down
1 change: 0 additions & 1 deletion src/lib/models/wordribbon.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "models/wordcandidate.h"
#include "models/area.h"

#include <QtCore>

namespace MaliitKeyboard {

Expand Down
1 change: 0 additions & 1 deletion src/plugin/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#include "keyboardsettings.h"

#include <QFile>
#include <QFileInfo>
#include <QJsonDocument>
#include <QScreen>
Expand Down
1 change: 0 additions & 1 deletion src/plugin/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#ifndef DEVICE_H
#define DEVICE_H

#include <QObject>
#include <QJsonObject>

class QScreen;
Expand Down
2 changes: 0 additions & 2 deletions src/plugin/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include "models/text.h"
#include "editor.h"

#include <QtGui/QKeyEvent>
#include <QTimer>
#include <maliit/namespace.h>

namespace MaliitKeyboard {
Expand Down
3 changes: 0 additions & 3 deletions src/plugin/editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@
#ifndef MALIIT_KEYBOARD_EDITOR_H
#define MALIIT_KEYBOARD_EDITOR_H

#include "models/key.h"
#include "models/wordcandidate.h"
#include "view/abstracttexteditor.h"

#include <maliit/plugins/abstractinputmethodhost.h>
#include <QtCore>

namespace MaliitKeyboard {

Expand Down
7 changes: 0 additions & 7 deletions src/plugin/inputmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,16 @@
#include "inputmethod.h"
#include "inputmethod_p.h"

#include "models/key.h"
#include "models/keyarea.h"
#include "models/wordribbon.h"
#include "models/layout.h"

#include "logic/abstractlanguagefeatures.h"

#include "view/setup.h"

#include <maliit/plugins/subviewdescription.h>
#include <maliit/plugins/updateevent.h>
#include <maliit/namespace.h>

#include <QGuiApplication>


class MImUpdateEvent;

using namespace MaliitKeyboard;

Expand Down
Loading

0 comments on commit 6c1a5dd

Please sign in to comment.