mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
refactor: Remove useless variable
This commit is contained in:
@@ -665,7 +665,6 @@ namespace swift::core
|
|||||||
{
|
{
|
||||||
Q_ASSERT_X(m_parsed, Q_FUNC_INFO, "Call this function after parsing");
|
Q_ASSERT_X(m_parsed, Q_FUNC_INFO, "Call this function after parsing");
|
||||||
|
|
||||||
m_useContexts = true;
|
|
||||||
m_coreFacadeConfig = coreConfig;
|
m_coreFacadeConfig = coreConfig;
|
||||||
const CStatusMessage msg = this->initLocalSettings();
|
const CStatusMessage msg = this->initLocalSettings();
|
||||||
if (msg.isFailure()) { return msg; }
|
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");
|
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);
|
m_coreFacadeConfig = CCoreFacadeConfig(CCoreFacadeConfig::NotUsed);
|
||||||
const CStatusMessage msg = this->initLocalSettings();
|
const CStatusMessage msg = this->initLocalSettings();
|
||||||
if (msg.isFailure()) { return msg; }
|
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");
|
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())
|
if (!m_setupReader || !m_setupReader->isSetupAvailable())
|
||||||
{
|
{
|
||||||
return CStatusMessage(this).error(u"No setup reader or setup available");
|
return CStatusMessage(this).error(u"No setup reader or setup available");
|
||||||
|
|||||||
@@ -653,7 +653,6 @@ namespace swift::core
|
|||||||
const QString m_applicationName; //!< application name
|
const QString m_applicationName; //!< application name
|
||||||
QReadWriteLock m_accessManagerLock; //!< lock to make access manager access threadsafe
|
QReadWriteLock m_accessManagerLock; //!< lock to make access manager access threadsafe
|
||||||
CCoreFacadeConfig m_coreFacadeConfig; //!< Core facade config if any
|
CCoreFacadeConfig m_coreFacadeConfig; //!< Core facade config if any
|
||||||
bool m_useContexts = false; //!< use contexts
|
|
||||||
bool m_devFlag = false; //!< dev. environment
|
bool m_devFlag = false; //!< dev. environment
|
||||||
bool m_saveSettingsOnShutdown = true; //!< saving all settings on shutdown
|
bool m_saveSettingsOnShutdown = true; //!< saving all settings on shutdown
|
||||||
bool m_localSettingsLoaded = false; //!< local settings loaded?
|
bool m_localSettingsLoaded = false; //!< local settings loaded?
|
||||||
|
|||||||
Reference in New Issue
Block a user