diff --git a/src/lib/webengine/webpage.cpp b/src/lib/webengine/webpage.cpp index cd9bf9b12..7f5e6a89b 100644 --- a/src/lib/webengine/webpage.cpp +++ b/src/lib/webengine/webpage.cpp @@ -68,8 +68,6 @@ #include #include -#include - QString WebPage::s_lastUploadLocation = QDir::homePath(); QUrl WebPage::s_lastUnsupportedUrl; QTime WebPage::s_lastUnsupportedUrlTime; @@ -1207,28 +1205,6 @@ void WebPage::javaScriptAlert(const QUrl &securityOrigin, const QString &msg) #endif } -void WebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &sourceID) -{ - switch (level) { - case InfoMessageLevel: - std::cout << "I"; - break; - - case WarningMessageLevel: - std::cout << "W"; - break; - - case ErrorMessageLevel: - std::cout << "E"; - break; - - default: - break; - } - - std::cout << " " << lineNumber << ": " << message.toStdString() << " (" << sourceID.toStdString() << ")" << std::endl; -} - void WebPage::setJavaScriptEnabled(bool enabled) { #if QTWEBENGINE_DISABLED diff --git a/src/lib/webengine/webpage.h b/src/lib/webengine/webpage.h index 3a6e5b8e7..56f736a32 100644 --- a/src/lib/webengine/webpage.h +++ b/src/lib/webengine/webpage.h @@ -60,7 +60,6 @@ public: bool javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, const QString &defaultValue, QString* result) Q_DECL_OVERRIDE; bool javaScriptConfirm(const QUrl &securityOrigin, const QString &msg) Q_DECL_OVERRIDE; void javaScriptAlert(const QUrl &securityOrigin, const QString &msg) Q_DECL_OVERRIDE; - void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &sourceID); void setJavaScriptEnabled(bool enabled);