diff options
| author | Ovahlord <18347559+Ovahlord@users.noreply.github.com> | 2025-11-25 23:55:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-25 23:55:32 +0100 |
| commit | fb88f3c9750578d57d12e9900243e8b73500ce9c (patch) | |
| tree | 12a2c4631ccc08df357e34615883ed7c649df8e7 /src/server/game/Server/Packets | |
| parent | 1d5ef9c21cb5e01aab14122e1feeef91fd376fcd (diff) | |
Core/Warden: Removed implementation not compatible with modern client versions (#30491)
Diffstat (limited to 'src/server/game/Server/Packets')
| -rw-r--r-- | src/server/game/Server/Packets/AllPackets.h | 1 | ||||
| -rw-r--r-- | src/server/game/Server/Packets/WardenPackets.cpp | 34 | ||||
| -rw-r--r-- | src/server/game/Server/Packets/WardenPackets.h | 39 |
3 files changed, 0 insertions, 74 deletions
diff --git a/src/server/game/Server/Packets/AllPackets.h b/src/server/game/Server/Packets/AllPackets.h index 1450dab14dd..ad31706a627 100644 --- a/src/server/game/Server/Packets/AllPackets.h +++ b/src/server/game/Server/Packets/AllPackets.h @@ -79,7 +79,6 @@ #include "TransmogrificationPackets.h" #include "VehiclePackets.h" #include "VignettePackets.h" -#include "WardenPackets.h" #include "WhoPackets.h" #include "WorldStatePackets.h" diff --git a/src/server/game/Server/Packets/WardenPackets.cpp b/src/server/game/Server/Packets/WardenPackets.cpp deleted file mode 100644 index 5f767660020..00000000000 --- a/src/server/game/Server/Packets/WardenPackets.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "WardenPackets.h" -#include "PacketUtilities.h" - -namespace WorldPackets::Warden -{ -void WardenData::Read() -{ - uint32 requestedSize = _worldPacket.read<uint32>(); - std::size_t pos = _worldPacket.rpos(); - std::size_t remainingSize = _worldPacket.size() - pos; - if (requestedSize > remainingSize) - OnInvalidArraySize(requestedSize, remainingSize); - - Data.resize(requestedSize); - _worldPacket.read(Data.data(), requestedSize); -} -} diff --git a/src/server/game/Server/Packets/WardenPackets.h b/src/server/game/Server/Packets/WardenPackets.h deleted file mode 100644 index 938e345e806..00000000000 --- a/src/server/game/Server/Packets/WardenPackets.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef TRINITYCORE_WARDEN_PACKETS_H -#define TRINITYCORE_WARDEN_PACKETS_H - -#include "Packet.h" - -namespace WorldPackets -{ - namespace Warden - { - class WardenData final : public ClientPacket - { - public: - explicit WardenData(WorldPacket&& packet) : ClientPacket(CMSG_WARDEN3_DATA, std::move(packet)) { } - - void Read() override; - - ByteBuffer Data; - }; - } -} - -#endif // TRINITYCORE_WARDEN_PACKETS_H |
