diff --git a/zone/client.h b/zone/client.h index 1bd5f170b..32c99ab10 100644 --- a/zone/client.h +++ b/zone/client.h @@ -338,8 +338,6 @@ public: bool HasRecipeLearned(uint32 recipe_id); bool CanIncreaseTradeskill(EQ::skills::SkillType tradeskill); - EQApplicationPacket* ReturnItemPacket(int16 slot_id, const EQ::ItemInstance* inst, ItemPacketType packet_type); - bool GetRevoked() const { return revoked; } void SetRevoked(bool rev) { revoked = rev; } inline uint32 GetIP() const { return ip; } diff --git a/zone/inventory.cpp b/zone/inventory.cpp index 4bbd54740..5ea334586 100644 --- a/zone/inventory.cpp +++ b/zone/inventory.cpp @@ -3376,31 +3376,6 @@ void Client::SendItemPacket(int16 slot_id, const EQ::ItemInstance* inst, ItemPac FastQueuePacket(&outapp); } -EQApplicationPacket* Client::ReturnItemPacket(int16 slot_id, const EQ::ItemInstance* inst, ItemPacketType packet_type) -{ - if (!inst) - return nullptr; - - // Serialize item into |-delimited string - std::string packet = inst->Serialize(slot_id); - - EmuOpcode opcode = OP_Unknown; - EQApplicationPacket* outapp = nullptr; - BulkItemPacket_Struct* itempacket = nullptr; - - // Construct packet - opcode = OP_ItemPacket; - outapp = new EQApplicationPacket(opcode, packet.length()+1); - itempacket = (BulkItemPacket_Struct*)outapp->pBuffer; - memcpy(itempacket->SerializedItem, packet.c_str(), packet.length()); - -#if EQDEBUG >= 9 - DumpPacket(outapp); -#endif - - return outapp; -} - static int16 BandolierSlotToWeaponSlot(int BandolierSlot) { switch (BandolierSlot)