summaryrefslogtreecommitdiffstats
path: root/src/plugins/wasm/qwasmwebview.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2024-11-05 08:16:44 +0100
committerMichal Klocek <michal.klocek@qt.io>2024-11-07 19:54:33 +0100
commit9754e14594f459b3c58358cef785df3ec4b8155e (patch)
tree94e9cba14e33fe90a4e3a53b80f194b348b097e6 /src/plugins/wasm/qwasmwebview.cpp
parent9feccda3138fe0d6c88bf8ba99eb4b57965e95a6 (diff)
Clean up unused url() web interface
All the backends implement url(), however it is never used. The loadingChanged signal delivers url which is used later by qquickwebview. Make it less confusing and remove unused code paths. Note actually loadingChanged should be required interface. Change-Id: If410845a39b09c2ec4e8ffb177d334d807561860 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/wasm/qwasmwebview.cpp')
-rw-r--r--src/plugins/wasm/qwasmwebview.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/wasm/qwasmwebview.cpp b/src/plugins/wasm/qwasmwebview.cpp
index 6325aca..ff6235e 100644
--- a/src/plugins/wasm/qwasmwebview.cpp
+++ b/src/plugins/wasm/qwasmwebview.cpp
@@ -92,14 +92,6 @@ void QWasmWebViewPrivate::setHttpUserAgent(const QString &userAgent)
qWarning("setHttpUserAgent() not supported on this platform");
}
-QUrl QWasmWebViewPrivate::url() const
-{
- if (m_iframe)
- return QUrl(QString::fromStdString(
- (*m_iframe)["contentWindow"]["location"]["href"].as<std::string>()));
- return QUrl::fromUserInput("");
-}
-
void QWasmWebViewPrivate::setUrl(const QUrl &url)
{
m_currentUrl = url;