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:
Lars Toenning
2024-02-04 17:58:36 +01:00
parent 6181fbe602
commit 24637aea09
2 changed files with 0 additions and 10 deletions

View File

@@ -158,13 +158,6 @@ namespace BlackCore::Data
return url;
}
CGlobalSetup CGlobalSetup::fromJsonFile(const QString &fileNameAndPath, bool acceptCacheFormat)
{
CGlobalSetup setup;
loadFromJsonFile(setup, fileNameAndPath, acceptCacheFormat);
return setup;
}
CServerList CGlobalSetup::getPredefinedServersPlusHardcodedServers() const
{
static const CServerList hardcoded(

View File

@@ -199,9 +199,6 @@ namespace BlackCore::Data
//! Build the full dbdata directory URL from shared URL
static BlackMisc::Network::CUrl buildDbDataDirectoryUrl(const BlackMisc::Network::CUrl &candidate);
//! Object initialized by JSON file
static CGlobalSetup fromJsonFile(const QString &fileNameAndPath, bool acceptCacheFormat);
private:
int m_dbHttpPort = 80; //!< port
int m_dbHttpsPort = 443; //!< SSL port