refactor: Remove useless variable

This commit is contained in:
Lars Toenning
2025-06-09 22:19:06 +02:00
parent 1e0382463b
commit f12fe190b3
2 changed files with 0 additions and 7 deletions

View File

@@ -665,7 +665,6 @@ namespace swift::core
{
Q_ASSERT_X(m_parsed, Q_FUNC_INFO, "Call this function after parsing");
m_useContexts = true;
m_coreFacadeConfig = coreConfig;
const CStatusMessage msg = this->initLocalSettings();
if (msg.isFailure()) { return msg; }
@@ -685,7 +684,6 @@ namespace swift::core
{
Q_ASSERT_X(m_parsed, Q_FUNC_INFO, "Call this function after parsing");
m_useContexts = true; // otherwise startCoreFacade will early-return
m_coreFacadeConfig = CCoreFacadeConfig(CCoreFacadeConfig::NotUsed);
const CStatusMessage msg = this->initLocalSettings();
if (msg.isFailure()) { return msg; }
@@ -718,10 +716,6 @@ namespace swift::core
{
Q_ASSERT_X(m_parsed, Q_FUNC_INFO, "Call this function after parsing");
if (!m_useContexts)
{
return CStatusMessage(this).error(u"No need to start core facade");
} // we do not use context, so no need to startup
if (!m_setupReader || !m_setupReader->isSetupAvailable())
{
return CStatusMessage(this).error(u"No setup reader or setup available");

View File

@@ -653,7 +653,6 @@ namespace swift::core
const QString m_applicationName; //!< application name
QReadWriteLock m_accessManagerLock; //!< lock to make access manager access threadsafe
CCoreFacadeConfig m_coreFacadeConfig; //!< Core facade config if any
bool m_useContexts = false; //!< use contexts
bool m_devFlag = false; //!< dev. environment
bool m_saveSettingsOnShutdown = true; //!< saving all settings on shutdown
bool m_localSettingsLoaded = false; //!< local settings loaded?