From 8dde50989e189ccd85f122ca54a9c27ee7066d5a Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Mon, 22 Jan 2024 11:30:00 +0100 Subject: [PATCH] Remove if TOKEN_AUTH_ONLY because the build will fail without it in all cases. Signed-off-by: Camila Ayres --- src/common/utility_unix.cpp | 2 -- src/common/utility_win.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/common/utility_unix.cpp b/src/common/utility_unix.cpp index 2bb8937a404f5..0b47ee78e13bc 100644 --- a/src/common/utility_unix.cpp +++ b/src/common/utility_unix.cpp @@ -112,12 +112,10 @@ void Utility::setLaunchOnStartup(const QString &appName, const QString &guiName, } } -#ifndef TOKEN_AUTH_ONLY bool Utility::hasDarkSystray() { return true; } -#endif QString Utility::getCurrentUserName() { diff --git a/src/common/utility_win.cpp b/src/common/utility_win.cpp index b2782c66fa5ad..9852cde16b382 100644 --- a/src/common/utility_win.cpp +++ b/src/common/utility_win.cpp @@ -148,7 +148,6 @@ void Utility::setLaunchOnStartup(const QString &appName, const QString &guiName, } } -#ifndef TOKEN_AUTH_ONLY bool Utility::hasDarkSystray() { if(Utility::registryGetKeyValue( HKEY_CURRENT_USER, @@ -185,7 +184,6 @@ bool Utility::registryKeyExists(HKEY hRootKey, const QString &subKey) RegCloseKey(hKey); return result != ERROR_FILE_NOT_FOUND; } -#endif QVariant Utility::registryGetKeyValue(HKEY hRootKey, const QString &subKey, const QString &valueName) {