mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refactor: Remove dev flag from bootstrap json
With this, the database debug flag can only be activated when using swift with a development build. Setting the development flag in the json also didn't worked previously as expected because the corresponding function to get the flag in application.cpp was called before the setup was loaded.
This commit is contained in:
@@ -533,12 +533,6 @@ namespace BlackCore
|
||||
const CDistribution d(this->getOwnDistribution());
|
||||
if (d.isRestricted() && this->isSet(m_cmdDevelopment)) { return true; }
|
||||
|
||||
// we can globally set a dev.flag
|
||||
if (this->isSetupAvailable())
|
||||
{
|
||||
// assume value from setup
|
||||
return this->getGlobalSetup().isDevelopment();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user