From 33651877d83cf2ec9f562d1fa3dd9c726944c0dd Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 10 Nov 2015 16:59:02 +0100 Subject: Move QmlConsole to Debugger Now it is closer to its only user and possibly reusable for no-QML uses there. We also drop the QML/JS syntax checker. The application being debugged can already tell us about syntax errors. There is no need to duplicate that functionality. Change-Id: I2ba151f9f4c854c6119ba5462c21be40bddcebf9 Reviewed-by: Ulf Hermann Reviewed-by: hjk --- src/libs/qmljs/consolemanagerinterface.cpp | 55 ------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 src/libs/qmljs/consolemanagerinterface.cpp (limited to 'src/libs/qmljs/consolemanagerinterface.cpp') diff --git a/src/libs/qmljs/consolemanagerinterface.cpp b/src/libs/qmljs/consolemanagerinterface.cpp deleted file mode 100644 index 0c433c5885..0000000000 --- a/src/libs/qmljs/consolemanagerinterface.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "consolemanagerinterface.h" - -namespace QmlJS { - -static ConsoleManagerInterface *g_instance = 0; - -ConsoleManagerInterface::ConsoleManagerInterface(QObject *parent) - : QObject(parent) -{ - Q_ASSERT(!g_instance); - g_instance = this; -} - -ConsoleManagerInterface::~ConsoleManagerInterface() -{ - Q_ASSERT(g_instance == this); - g_instance = 0; -} - -ConsoleManagerInterface *ConsoleManagerInterface::instance() -{ - return g_instance; -} - -} // QmlJS -- cgit v1.2.1