refactor: removed m_MojangAPI from RankManager (#5483)

* refactor: removed m_MojangAPI from RankManager

* docs: updated CONTRIBUTORS
This commit is contained in:
stevenzr 2023-04-04 22:32:09 +02:00 committed by GitHub
parent ceaebd00d8
commit dcad86e776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 11 deletions

View File

@ -78,6 +78,7 @@ Seadragon91 (Lukas Pioch)
Sofapriester
Spekdrum (Pablo Beltran)
SphinxC0re
steve-nzr
structinf (xdot)
sweetgiorni
Sxw1212

View File

@ -17,8 +17,7 @@
cRankManager::cRankManager(void) :
m_DB("Ranks.sqlite", SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE),
m_IsInitialized(false),
m_MojangAPI(nullptr)
m_IsInitialized(false)
{
}
@ -28,10 +27,6 @@ cRankManager::cRankManager(void) :
cRankManager::~cRankManager()
{
if (m_MojangAPI != nullptr)
{
m_MojangAPI->SetRankManager(nullptr);
}
}

View File

@ -273,11 +273,6 @@ protected:
/** Set to true once the manager is initialized. */
bool m_IsInitialized;
/** The MojangAPI instance that is used for keeping player names and UUIDs in sync.
Set in Initialize(), may be nullptr. */
cMojangAPI * m_MojangAPI;
/** Returns true if all the DB tables are empty, indicating a fresh new install. */
bool AreDBTablesEmpty(void);