From 2869b7c20977b1c0478dc66914bb6dcd93243e3b Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Fri, 2 Aug 2019 15:26:36 +0200 Subject: [PATCH] Remove no longer needed code variant for KTextEditor < 5.10 --- codecompletion/tests/pycompletiontest.cpp | 3 --- parser/tests/pyasttest.cpp | 4 ---- parser/tests/pycythontest.cpp | 4 ---- 3 files changed, 11 deletions(-) diff --git a/codecompletion/tests/pycompletiontest.cpp b/codecompletion/tests/pycompletiontest.cpp index 7566cad5..ab28d44c 100644 --- a/codecompletion/tests/pycompletiontest.cpp +++ b/codecompletion/tests/pycompletiontest.cpp @@ -44,9 +44,6 @@ using namespace KDevelop; QTEST_MAIN(Python::PyCompletionTest) Q_DECLARE_METATYPE(QList) -#if KTEXTEDITOR_VERSION < QT_VERSION_CHECK(5, 10, 0) -Q_DECLARE_METATYPE(KTextEditor::Range) -#endif static int testId = 0; static QString basepath = "/tmp/__kdevpythoncompletiontest.dir/"; diff --git a/parser/tests/pyasttest.cpp b/parser/tests/pyasttest.cpp index 1671953e..4fd5f4eb 100644 --- a/parser/tests/pyasttest.cpp +++ b/parser/tests/pyasttest.cpp @@ -47,10 +47,6 @@ using namespace Python; -#if KTEXTEDITOR_VERSION < QT_VERSION_CHECK(5, 10, 0) -Q_DECLARE_METATYPE(KTextEditor::Range) -#endif - QTEST_MAIN(PyAstTest) PyAstTest::PyAstTest(QObject* parent): QObject(parent) diff --git a/parser/tests/pycythontest.cpp b/parser/tests/pycythontest.cpp index 4129fadc..f443d5af 100644 --- a/parser/tests/pycythontest.cpp +++ b/parser/tests/pycythontest.cpp @@ -39,10 +39,6 @@ using namespace Python; -#if KTEXTEDITOR_VERSION < QT_VERSION_CHECK(5, 10, 0) -Q_DECLARE_METATYPE(KTextEditor::Range) -#endif - QTEST_MAIN(PyCythonTest) PyCythonTest::PyCythonTest(QObject* parent): QObject(parent) -- 2.24.1