From 35cfa7456b53f136e62c9a312d52236f65e4c71b Mon Sep 17 00:00:00 2001 From: Boudewijn Rempt Date: Fri, 27 Sep 2019 09:46:57 +0200 Subject: [PATCH] Simplify code by removing public function that was called only once --- libs/ui/KisWelcomePageWidget.cpp | 12 ++++-------- libs/ui/KisWelcomePageWidget.h | 2 -- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/libs/ui/KisWelcomePageWidget.cpp b/libs/ui/KisWelcomePageWidget.cpp index 7a479abbe1..7ab6bcd89a 100644 --- a/libs/ui/KisWelcomePageWidget.cpp +++ b/libs/ui/KisWelcomePageWidget.cpp @@ -143,12 +143,6 @@ void KisWelcomePageWidget::setMainWindow(KisMainWindow* mainWin) } } -bool KisWelcomePageWidget::isDevelopmentBuild() -{ - // dev builds contain GIT hash in it and the word git - // stable versions do not contain this - return qApp->applicationVersion().contains("git"); -} void KisWelcomePageWidget::showDropAreaIndicator(bool show) { @@ -349,8 +343,10 @@ void KisWelcomePageWidget::slotUpdateVersionMessage() alertIcon->setIcon(KisIconUtils::loadIcon("warning")); alertIcon->setVisible(false); - // find out if we need an update...or if this is a development version - if (isDevelopmentBuild()) { + // find out if we need an update...or if this is a development version: + // dev builds contain GIT hash in it and the word git + // stable versions do not contain this. + if (qApp->applicationVersion().contains("git")) { // Development build QString versionLabelText = QString("