From 5cb0fe0a6fb57631ed1a20f05c76b2f493d3da19 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 24 Jan 2015 03:51:48 -0600 Subject: [PATCH] Remove Client::ChangeSQLLog --- zone/client.cpp | 20 -------------------- zone/client.h | 1 - 2 files changed, 21 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index 52d66cb6b..385127409 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -3484,26 +3484,6 @@ void Client::Insight(uint32 t_id) Message(0,"Your target is a level %i %s. It appears %s and %s for its level. It seems %s",who->GetLevel(),GetEQClassName(who->GetClass(),1),dmg,hitpoints,resists); } -void Client::ChangeSQLLog(const char *file) { - if(SQL_log != nullptr) { - fclose(SQL_log); - SQL_log = nullptr; - } - if(file != nullptr) { - if(strstr(file, "..") != nullptr) { - Message(13, ".. is forbibben in SQL log file names."); - return; - } - char buf[512]; - snprintf(buf, 511, "%s%s", SQL_LOG_PATH, file); - buf[511] = '\0'; - SQL_log = fopen(buf, "a"); - if(SQL_log == nullptr) { - Message(13, "Unable to open SQL log file: %s\n", strerror(errno)); - } - } -} - void Client::GetGroupAAs(GroupLeadershipAA_Struct *into) const { memcpy(into, &m_pp.leader_abilities.group, sizeof(GroupLeadershipAA_Struct)); } diff --git a/zone/client.h b/zone/client.h index bffcde113..f6b1bda58 100644 --- a/zone/client.h +++ b/zone/client.h @@ -914,7 +914,6 @@ public: void SendZoneFlagInfo(Client *to) const; void LoadZoneFlags(); - void ChangeSQLLog(const char *file); bool CanFish(); void GoFish(); void ForageItem(bool guarantee = false);