From ac4572bf7984cc79cd1ea9008fc296fa1822abaf Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sat, 29 Apr 2023 21:00:08 -0400 Subject: [PATCH] [Cleanup] Remove unused methods in zone/client.cpp and zone/client.h (#3312) * [Cleanup] Remove unused methods in zone/client.cpp and zone/client.h # Notes - Remove `CheckAccess()` in `zone/client.cpp`. - Remove `CheckAccess()` in `zone/client.h`. - Remove `CheckQuests()` in `zone/client.h`. - Remove `MakeCorpse()` in `zone/client.h`. - Remove `HPTick()` in `zone/client.h`. - These methods are unused. * Update client.h --- zone/client.cpp | 7 ------- zone/client.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index fb797a62a..23c117d5f 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -2783,13 +2783,6 @@ void Client::GMKill() { safe_delete(outapp); } -bool Client::CheckAccess(int16 iDBLevel, int16 iDefaultLevel) { - if ((admin >= iDBLevel) || (iDBLevel == AccountStatus::Max && admin >= iDefaultLevel)) - return true; - else - return false; -} - void Client::MemorizeSpell(uint32 slot,uint32 spellid,uint32 scribing, uint32 reduction){ if (slot < 0 || slot >= EQ::spells::DynamicLookup(ClientVersion(), GetGM())->SpellbookSize) return; diff --git a/zone/client.h b/zone/client.h index 245ead4a2..59e6cd9bc 100644 --- a/zone/client.h +++ b/zone/client.h @@ -322,7 +322,6 @@ public: void FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho); bool ShouldISpawnFor(Client *c) { return !GMHideMe(c) && !IsHoveringForRespawn(); } virtual bool Process(); - void ProcessPackets(); void QueuePacket(const EQApplicationPacket* app, bool ack_req = true, CLIENT_CONN_STATUS = CLIENT_CONNECTINGALL, eqFilterType filter=FilterNone); void FastQueuePacket(EQApplicationPacket** app, bool ack_req = true, CLIENT_CONN_STATUS = CLIENT_CONNECTINGALL); void ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_skill, const char* orig_message, const char* targetname = nullptr, bool is_silent = false); @@ -379,12 +378,8 @@ public: void SetPetCommandState(int button, int state); - bool CheckAccess(int16 iDBLevel, int16 iDefaultLevel); - - void CheckQuests(const char* zonename, const char* message, uint32 npc_id, uint32 item_id, Mob* other); bool AutoAttackEnabled() const { return auto_attack; } bool AutoFireEnabled() const { return auto_fire; } - void MakeCorpse(uint32 exploss); bool ChangeFirstName(const char* in_firstname,const char* gmname); @@ -394,7 +389,6 @@ public: virtual void SetMaxHP(); int32 LevelRegen(); - void HPTick(); void SetGM(bool toggle); void SetPVP(bool toggle, bool message = true);