mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
refactor: Remove unused method
This method is not used. The setup reader instead directly uses the convertFromJson method from the JSON mixin.
This commit is contained in:
@@ -158,13 +158,6 @@ namespace BlackCore::Data
|
|||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGlobalSetup CGlobalSetup::fromJsonFile(const QString &fileNameAndPath, bool acceptCacheFormat)
|
|
||||||
{
|
|
||||||
CGlobalSetup setup;
|
|
||||||
loadFromJsonFile(setup, fileNameAndPath, acceptCacheFormat);
|
|
||||||
return setup;
|
|
||||||
}
|
|
||||||
|
|
||||||
CServerList CGlobalSetup::getPredefinedServersPlusHardcodedServers() const
|
CServerList CGlobalSetup::getPredefinedServersPlusHardcodedServers() const
|
||||||
{
|
{
|
||||||
static const CServerList hardcoded(
|
static const CServerList hardcoded(
|
||||||
|
|||||||
@@ -199,9 +199,6 @@ namespace BlackCore::Data
|
|||||||
//! Build the full dbdata directory URL from shared URL
|
//! Build the full dbdata directory URL from shared URL
|
||||||
static BlackMisc::Network::CUrl buildDbDataDirectoryUrl(const BlackMisc::Network::CUrl &candidate);
|
static BlackMisc::Network::CUrl buildDbDataDirectoryUrl(const BlackMisc::Network::CUrl &candidate);
|
||||||
|
|
||||||
//! Object initialized by JSON file
|
|
||||||
static CGlobalSetup fromJsonFile(const QString &fileNameAndPath, bool acceptCacheFormat);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_dbHttpPort = 80; //!< port
|
int m_dbHttpPort = 80; //!< port
|
||||||
int m_dbHttpsPort = 443; //!< SSL port
|
int m_dbHttpsPort = 443; //!< SSL port
|
||||||
|
|||||||
Reference in New Issue
Block a user