Commit bcdbc1cc authored by Laurent Montel's avatar Laurent Montel 😁

If include is define in .h remove it if it's defined in .cpp too (scripted)

parent 16cabc52
......@@ -51,7 +51,6 @@
//include files for QT
#include <QAction>
#include <QDialog>
#include <QDockWidget>
#include <QGridLayout>
#include <QHostInfo>
......
......@@ -22,7 +22,6 @@
#define KDE_NO_COMPAT
#include "kwaitedplayersetupdialog.h"
#include "GameLogic/gameautomaton.h"
#include "GameLogic/player.h"
#include "kgamewin.h"
#include "GameLogic/onu.h"
#include "Sprites/skinSpritesData.h"
......
......@@ -20,7 +20,6 @@
#include "KMessageParts.h"
#include <stdexcept>
#include <QPixmap>
namespace Ksirk {
......
......@@ -29,7 +29,6 @@
#include <QColorDialog>
#include <QInputDialog>
#include <QMessageBox>
#include <QPixmap>
#include <QTextDocument>
#include <iostream>
......
......@@ -29,7 +29,6 @@
#include <QPainter>
#include <QColorDialog>
#include <QInputDialog>
#include <QPixmap>
namespace Ksirk
{
class KGameWindow;
......
......@@ -32,7 +32,6 @@
#include <KLocalizedString>
#include "ksirk_debug.h"
#include <QSvgRenderer>
#include <QString>
#include <QApplication>
#include <QDataStream>
#include <QBitmap>
......
......@@ -22,14 +22,11 @@
#include "onu.h"
#include "Sprites/skinSpritesData.h"
#include "goal.h"
#include "gameautomaton.h"
#include "kgamewin.h"
#define KDE_NO_COMPAT
#include <QFile>
#include <qdom.h>
#include <QPainter>
#include <QPixmap>
#include <QPixmapCache>
#include <QFileInfo>
#include <QMenuBar>
......
......@@ -23,7 +23,6 @@
#include "player.h"
#include "Sprites/backgnd.h"
#include "Sprites/skinSpritesData.h"
#include "GameLogic/gameautomaton.h"
#include "GameLogic/onu.h"
#include "kgamewin.h"
......
......@@ -51,8 +51,6 @@
#include <KComponentData>
#include "jabberconnector.h"
#include "jabberclient.h"
#include "jabberprotocol.h"
#include "jabberresourcepool.h"
#include "jabbercontactpool.h"
// #include "jabberfiletransfer.h"
......
......@@ -23,9 +23,7 @@
#include "jabber_protocol_debug.h"
#include <QString>
#include <QStringList>
#include <QTimer>
#include <QPair>
#include <qdom.h>
#include <QTextStream>
......
......@@ -26,7 +26,6 @@
#include <QTimer>
#include <QRegExp>
#include <QtCrypto>
#include <bsocket.h>
#include <filetransfer.h>
......
......@@ -20,7 +20,6 @@
#include "jabber_protocol_debug.h"
#include "jabberconnector.h"
#include "jabberbytestream.h"
// #include "jabberprotocol.h"
JabberConnector::JabberConnector ( QObject *parent )
......
......@@ -31,7 +31,6 @@
#include <QImage>
#include <QRegExp>
#include <QBuffer>
#include <QList>
#include <KLocalizedString>
#include <KMessageBox>
......
......@@ -23,7 +23,6 @@
#include <KGenericFactory>
#include <KConfig>
#include <QMap>
#include <QTimer>
#include <QPixmap>
#include <QStringList>
......
......@@ -22,7 +22,6 @@
subclass KMessageJabber of KMessageIO
*/
#include "jabber_protocol_debug.h"
#include "kmessagejabber.h"
#include <QDataStream>
#include <QUuid>
......
......@@ -22,9 +22,7 @@
#include <algorithm>
#include <QDomElement>
#include <QString>
#include <QStringList>
#include <QList>
#include "jabber_protocol_debug.h"
// #include "jabberprotocol.h"
......
......@@ -20,10 +20,8 @@
/* begin : Mon Feb 07 2005 */
#include "ksirkgamexmlhandler.h"
#include "KsirkGlobalDefinitions.h"
#include "GameLogic/country.h"
#include "GameLogic/onu.h"
#include "GameLogic/goal.h"
#include "GameLogic/KMessageParts.h"
#include "ksirk_debug.h"
......
......@@ -21,9 +21,7 @@
#include "ksirkgamexmlloader.h"
#include "ksirkgamexmlhandler.h"
#include "KsirkGlobalDefinitions.h"
#include <qxml.h>
#include <KMessageBox>
#include <KLocalizedString>
......
......@@ -24,7 +24,6 @@
#include <QSize>
#include <QEvent>
#include <QMouseEvent>
#include <QGraphicsSceneMouseEvent>
#include <QScrollBar>
......
......@@ -51,7 +51,6 @@
#include "ndns.h"
#include "netnames.h"
// CS_NAMESPACE_BEGIN
......
......@@ -20,7 +20,6 @@
*/
#include "bytestream.h"
#include <QByteArray>
// CS_NAMESPACE_BEGIN
......
......@@ -5,7 +5,6 @@
#include "xmpp/sasl/digestmd5response.h"
#include <QByteArray>
#include <QtCrypto>
#include <QtDebug>
......
......@@ -27,7 +27,6 @@
#include "protocol.h"
#include <qca.h>
#include <QList>
#include <QByteArray>
#include <QtCrypto>
......
......@@ -23,7 +23,6 @@
#include "bytestream.h"
//Added by qt3to4:
#include <QList>
#include <QTextStream>
#include <QByteArray>
#include <QApplication>
......
......@@ -21,9 +21,7 @@
#include <QDomElement>
#include <QString>
#include "xmpp_task.h"
#include "xmpp/jid/jid.h"
#include "xmpp_discoitem.h"
#include "xmpp_discoinfotask.h"
#include "xmpp_xmlcommon.h"
......
......@@ -22,7 +22,6 @@
#include <QCoreApplication>
#include <QString>
#include <QMap>
#include <QStringList>
#include "xmpp_features.h"
......
......@@ -26,10 +26,8 @@
#include "xmpp_xmlcommon.h"
//#include "xmpp_stream.h"
//#include "xmpp_types.h"
#include "xmpp_vcard.h"
#include <QRegExp>
#include <QList>
using namespace XMPP;
......
......@@ -21,7 +21,6 @@
#include "xmpp_vcard.h"
#include <qdom.h>
#include <QDateTime>
#include <QImage> // needed for image format recognition
......
......@@ -22,8 +22,6 @@
#include "xmpp_xmlcommon.h"
#include "xmpp/jid/jid.h"
#include <QList>
#include <QSharedDataPointer>
using namespace XMPP;
using namespace XMLHelper;
......
......@@ -23,7 +23,6 @@
#include "xmpp_stanza.h"
#include <QString>
#include <qdom.h>
#include <QDateTime>
#include <QSize>
#include <QRect>
......
#include "xmpp/zlib/zlibcompressor.h"
#include <QtDebug>
#include <QObject>
#include <QIODevice>
#include <zlib.h>
......
#include "xmpp/zlib/zlibdecompressor.h"
#include <QtDebug>
#include <QObject>
#include <QIODevice>
#include <zlib.h>
......
......@@ -21,7 +21,6 @@
// application specific includes
#include "kgamewin.h"
#include "mainMenu.h"
#include "ksirkConfigDialog.h"
#include "ksirksettings.h"
#include "Sprites/animspritesgroup.h"
......@@ -29,12 +28,9 @@
#include "GameLogic/aiplayer.h"
#include "GameLogic/aiColsonPlayer.h"
#include "GameLogic/aiplayerio.h"
#include "GameLogic/country.h"
#include "GameLogic/onu.h"
#include "GameLogic/dice.h"
#include "GameLogic/KMessageParts.h"
#include "GameLogic/goal.h"
#include "GameLogic/gameautomaton.h"
#include "GameLogic/KsirkChatItem.h"
#include "GameLogic/KsirkChatModel.h"
#include "GameLogic/KsirkChatDelegate.h"
......@@ -61,13 +57,11 @@
#include <QIcon>
#include <QMenuBar>
#include <QMovie>
#include <QPushButton>
#include <QStatusBar>
#include <QString>
#include <QSvgRenderer>
#include <QTreeView>
#include <QUuid>
#include <QVBoxLayout>
// include files for KDE
#include <KMessageBox>
......@@ -84,7 +78,6 @@
#define USE_UNSTABLE_LIBKDEGAMESPRIVATE_API
#include <libkdegamesprivate/kgame/kgamechat.h>
#include <sys/utsname.h>
#include <QStandardPaths>
namespace Ksirk
{
......
......@@ -20,18 +20,13 @@
/* begin : Thu JAN 22 2008 */
#include "krightdialog.h"
#include "GameLogic/country.h"
#include "GameLogic/player.h"
#include "Sprites/animsprite.h"
#include <qdrawutil.h>
#include <QGroupBox>
#include <QLabel>
#include <QColor>
#include <QBrush>
#include <QBitmap>
#include <QPixmap>
#include <QString>
#include <QGridLayout>
#include <QScrollBar>
#include <QScrollArea>
#include <QPalette>
......
......@@ -26,7 +26,6 @@
#include <KLocalizedString>
#include "ksirkskineditor_debug.h"
#include <QSvgRenderer>
#include <QString>
#include <QApplication>
#include <QDataStream>
#include <QBitmap>
......
......@@ -30,7 +30,6 @@
#include <KMessageBox>
#include <KLocalizedString>
#include <KConfigDialog>
#include <QSlider>
#include <QCheckBox>
......
......@@ -20,7 +20,6 @@
// application specific includes
#include "ksirkskineditorscene.h"
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include "ksirkskineditor_debug.h"
......
......@@ -39,10 +39,8 @@
#include <QDockWidget>
#include <QFileDialog>
#include <QTreeView>
#include <QPushButton>
#include <QGridLayout>
#include <QString>
#include <QVBoxLayout>
#include <QMovie>
#include <QGraphicsScene>
#include <QGraphicsView>
......
......@@ -28,7 +28,6 @@
#include <QFile>
// #include <QDom>
#include <QPainter>
#include <QPixmap>
#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QXmlStreamReader>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment