From: Christian Kamm Date: Fri, 11 Jan 2019 11:54:33 +0000 (+0100) Subject: Wizard: Drop unused function X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~343 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c470825c8f799b768e834d81b2d7336e5cc0b70f;p=nextcloud-desktop.git Wizard: Drop unused function --- diff --git a/src/gui/wizard/owncloudsetuppage.cpp b/src/gui/wizard/owncloudsetuppage.cpp index 8f03fa124..db9289992 100644 --- a/src/gui/wizard/owncloudsetuppage.cpp +++ b/src/gui/wizard/owncloudsetuppage.cpp @@ -237,30 +237,6 @@ void OwncloudSetupPage::initializePage() wizard()->resize(wizard()->sizeHint()); } -bool OwncloudSetupPage::urlHasChanged() -{ - bool change = false; - const QChar slash('/'); - - QUrl currentUrl(url()); - QUrl initialUrl(_oCUrl); - - QString currentPath = currentUrl.path(); - QString initialPath = initialUrl.path(); - - // add a trailing slash. - if (!currentPath.endsWith(slash)) - currentPath += slash; - if (!initialPath.endsWith(slash)) - initialPath += slash; - - if (currentUrl.host() != initialUrl.host() || currentUrl.port() != initialUrl.port() || currentPath != initialPath) { - change = true; - } - - return change; -} - int OwncloudSetupPage::nextId() const { switch (_authType) { diff --git a/src/gui/wizard/owncloudsetuppage.h b/src/gui/wizard/owncloudsetuppage.h index 88d164a72..18b9c0135 100644 --- a/src/gui/wizard/owncloudsetuppage.h +++ b/src/gui/wizard/owncloudsetuppage.h @@ -78,7 +78,6 @@ signals: void determineAuthType(const QString &); private: - bool urlHasChanged(); void customizeStyle(); Ui_OwncloudSetupPage _ui;