From 1853332141a7d658d58895139fc5ffa0b275faa2 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Fri, 29 Oct 2021 12:29:21 +0800 Subject: [PATCH] clean up debug code --- RedPandaIDE/compiler/compiler.cpp | 1 - RedPandaIDE/compiler/compilermanager.cpp | 1 - RedPandaIDE/main.cpp | 1 - RedPandaIDE/mainwindow.cpp | 1 - RedPandaIDE/project.cpp | 1 - RedPandaIDE/qsynedit/KeyStrokes.cpp | 1 - RedPandaIDE/qsynedit/MiscClasses.cpp | 1 - RedPandaIDE/qsynedit/MiscProcs.cpp | 1 - RedPandaIDE/qsynedit/TextPainter.cpp | 2 +- 9 files changed, 1 insertion(+), 9 deletions(-) diff --git a/RedPandaIDE/compiler/compiler.cpp b/RedPandaIDE/compiler/compiler.cpp index c74f1f35..50c83e2a 100644 --- a/RedPandaIDE/compiler/compiler.cpp +++ b/RedPandaIDE/compiler/compiler.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include "../editor.h" diff --git a/RedPandaIDE/compiler/compilermanager.cpp b/RedPandaIDE/compiler/compilermanager.cpp index 271b386e..3b5ab4dc 100644 --- a/RedPandaIDE/compiler/compilermanager.cpp +++ b/RedPandaIDE/compiler/compilermanager.cpp @@ -1,7 +1,6 @@ #include "compilermanager.h" #include "filecompiler.h" #include "stdincompiler.h" -#include #include "../mainwindow.h" #include "executablerunner.h" #include "utils.h" diff --git a/RedPandaIDE/main.cpp b/RedPandaIDE/main.cpp index ffa6df93..748ef64b 100644 --- a/RedPandaIDE/main.cpp +++ b/RedPandaIDE/main.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 2a525b86..2aeb68b9 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -37,7 +37,6 @@ #include #include #include -#include #include "cpprefacter.h" #include diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index 99273fa1..9ce69b01 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -20,7 +20,6 @@ #include #include #include "settings.h" -#include Project::Project(const QString &filename, const QString &name, QObject *parent) : QObject(parent), diff --git a/RedPandaIDE/qsynedit/KeyStrokes.cpp b/RedPandaIDE/qsynedit/KeyStrokes.cpp index 76a4db58..a9151463 100644 --- a/RedPandaIDE/qsynedit/KeyStrokes.cpp +++ b/RedPandaIDE/qsynedit/KeyStrokes.cpp @@ -1,5 +1,4 @@ #include "KeyStrokes.h" -#include SynEditKeyStroke::SynEditKeyStroke() { diff --git a/RedPandaIDE/qsynedit/MiscClasses.cpp b/RedPandaIDE/qsynedit/MiscClasses.cpp index 7c48f0e8..c9a60fbd 100644 --- a/RedPandaIDE/qsynedit/MiscClasses.cpp +++ b/RedPandaIDE/qsynedit/MiscClasses.cpp @@ -1,6 +1,5 @@ #include "MiscClasses.h" #include "algorithm" -#include SynGutter::SynGutter(QObject *parent): QObject(parent) diff --git a/RedPandaIDE/qsynedit/MiscProcs.cpp b/RedPandaIDE/qsynedit/MiscProcs.cpp index 5ca023a2..801c8863 100644 --- a/RedPandaIDE/qsynedit/MiscProcs.cpp +++ b/RedPandaIDE/qsynedit/MiscProcs.cpp @@ -3,7 +3,6 @@ #include #include #include -#include int minMax(int x, int mi, int ma) { diff --git a/RedPandaIDE/qsynedit/TextPainter.cpp b/RedPandaIDE/qsynedit/TextPainter.cpp index 0bdd268a..774a952e 100644 --- a/RedPandaIDE/qsynedit/TextPainter.cpp +++ b/RedPandaIDE/qsynedit/TextPainter.cpp @@ -973,7 +973,7 @@ void SynEditTextPainter::PaintLines() if (bCurrentLine && edit->mInputPreeditString.length()>0) { int startPos = edit->mHighlighter->getTokenPos()+1; int endPos = edit->mHighlighter->getTokenPos() + sToken.length(); - qDebug()<mCaretX<<":"<mCaretX+edit->mInputPreeditString.length(); + //qDebug()<mCaretX<<":"<mCaretX+edit->mInputPreeditString.length(); if (!(endPos < edit->mCaretX || startPos >= edit->mCaretX+edit->mInputPreeditString.length())) { if (!preeditAttr) {