diff --git a/src/DebugServer/Gdb/Packet.hpp b/src/DebugServer/Gdb/Packet.hpp index e29e24d3..5b348bfe 100644 --- a/src/DebugServer/Gdb/Packet.hpp +++ b/src/DebugServer/Gdb/Packet.hpp @@ -32,14 +32,6 @@ namespace Bloom::DebugServer::Gdb Packet& operator = (const Packet& other) = default; Packet& operator = (Packet&& other) = default; - [[nodiscard]] virtual std::vector getData() const { - return this->data; - } - - void setData(const std::vector& data) { - this->data = data; - } - /** * Generates a raw packet. * @@ -47,9 +39,8 @@ namespace Bloom::DebugServer::Gdb */ [[nodiscard]] RawPacket toRawPacket() const { std::vector packet = {'$'}; - auto data = this->getData(); - for (const auto& byte : data) { + for (const auto& byte : this->data) { // Escape $ and # characters switch (byte) { case '$':