diff --git a/src/core/application.cpp b/src/core/application.cpp index 720cea671..04f396cdf 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -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"); diff --git a/src/core/application.h b/src/core/application.h index 6034e0872..ac31faf9d 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -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?