From 5f0f520a45c22efc65b059b44098424e8e015d51 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 6 Feb 2017 20:44:13 +0100 Subject: [PATCH] WebPage: Remove now unused scheduleAdjustPage --- src/lib/webengine/webpage.cpp | 14 -------------- src/lib/webengine/webpage.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/lib/webengine/webpage.cpp b/src/lib/webengine/webpage.cpp index 2578eb327..c2c100978 100644 --- a/src/lib/webengine/webpage.cpp +++ b/src/lib/webengine/webpage.cpp @@ -166,20 +166,6 @@ void WebPage::setScrollPosition(const QPointF &pos) runJavaScript(QSL("window.scrollTo(%1, %2)").arg(v.x()).arg(v.y()), WebPage::SafeJsWorld); } -void WebPage::scheduleAdjustPage() -{ - if (view()->isLoading()) { - m_adjustingScheduled = true; - } - else { - const QSize originalSize = view()->size(); - QSize newSize(originalSize.width() - 1, originalSize.height() - 1); - - view()->resize(newSize); - view()->resize(originalSize); - } -} - bool WebPage::isRunningLoop() { return m_runningLoop; diff --git a/src/lib/webengine/webpage.h b/src/lib/webengine/webpage.h index 07c93a447..40dbe841c 100644 --- a/src/lib/webengine/webpage.h +++ b/src/lib/webengine/webpage.h @@ -65,7 +65,6 @@ public: bool hasMultipleUsernames() const; QVector autoFillData() const; - void scheduleAdjustPage(); bool isRunningLoop(); bool isLoading() const;