From 22867259faedd5e5d4b9da2134795f85898c2637 Mon Sep 17 00:00:00 2001 From: JJ <3617814+joligario@users.noreply.github.com> Date: Mon, 15 Sep 2025 14:14:35 -0400 Subject: [PATCH] Update shareddb.cpp --- common/shareddb.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/shareddb.cpp b/common/shareddb.cpp index ba88ce5bb..4527bfc5c 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -122,16 +122,6 @@ bool SharedDatabase::SetGMFlymode(uint32 account_id, uint8 flymode) return a.id > 0; } -uint32 SharedDatabase::GetTotalTimeEntitledOnAccount(uint32 AccountID) { - uint32 EntitledTime = 0; - const std::string query = StringFormat("SELECT `time_played` FROM `character_data` WHERE `account_id` = %u", AccountID); - auto results = QueryDatabase(query); - for (auto& row = results.begin(); row != results.end(); ++row) { - EntitledTime += Strings::ToUnsignedInt(row[0]); - } - return EntitledTime; -} - void SharedDatabase::SetMailKey(uint32 character_id, int ip_address, int mail_key) { std::string full_mail_key;