Commit 0a67076e authored by Tim Jenssen's avatar Tim Jenssen

QmlDesigner: remove unused code

Change-Id: I4c888f69d3bedc510f0f0a9f67d96caf17c4bcee
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent 4d008299
# MOC_DIR = moc
debug {
DEFINES += VIEWLOGGER
}
TMP_BAUHAUS_NO_OUTPUT = $$[BAUHAUS_NO_OUTPUT]
equals(TMP_BAUHAUS_NO_OUTPUT, true):DEFINES += QT_NO_DEBUG_OUTPUT \
QT_NO_WARNING_OUTPUT
DEFINES += ENABLE_TEXT_VIEW
isEmpty($$(BAUHAUS_OUTPUT_IN_TEST)):DEFINES += QDEBUG_IN_TESTS WARNINGS_IN_TESTS
......@@ -23,28 +23,6 @@
**
****************************************************************************/
//static void testMessageOutput(QtMsgType type, const char *msg)
// {
// switch (type) {
// case QtDebugMsg:
//#ifdef QDEBUG_IN_TESTS
// std::fprintf(stderr, "Debug: %s\n", msg);
//#endif // QDEBUG_IN_TESTS
// break;
// case QtWarningMsg:
//#ifdef WARNINGS_IN_TESTS
// std::fprintf(stderr, "Warning: %s\n", msg);
//#endif // WARNINGS_IN_TESTS
// break;
// case QtCriticalMsg:
// std::fprintf(stderr, "Critical: %s\n", msg);
// break;
// case QtFatalMsg:
// std::fprintf(stderr, "Fatal: %s\n", msg);
// break;
// }
// }
static ModelNode addNodeListChild(const ModelNode &parentNode, const QString &typeName, int major, int minor, const QString &parentProperty)
{
ModelNode newNode = parentNode.view()->createModelNode(typeName.toUtf8(), major, minor);
......
......@@ -9,7 +9,6 @@ QTC_PLUGIN_DEPENDS += \
qmljseditor
include(../../../qttest.pri)
include($$IDE_SOURCE_TREE/src/plugins/qmldesigner/config.pri)
QT += network core-private
......
......@@ -175,9 +175,6 @@ tst_TestCore::tst_TestCore()
void tst_TestCore::initTestCase()
{
#ifndef QDEBUG_IN_TESTS
qInstallMsgHandler(testMessageOutput);
#endif
Exception::setShouldAssert(false);
initializeMetaTypeSystem(QLatin1String(QTCREATORDIR "/share/qtcreator"));
......
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