From ceb4361d216a85843fa3c9d67278b01de60f0ed9 Mon Sep 17 00:00:00 2001 From: godotg Date: Thu, 5 Oct 2023 17:00:38 +0800 Subject: [PATCH] del[py]: del unused method --- protocol/src/main/resources/python/ByteBuffer.py | 7 ------- protocol/src/test/python/zfoopy/ByteBuffer.py | 7 ------- 2 files changed, 14 deletions(-) diff --git a/protocol/src/main/resources/python/ByteBuffer.py b/protocol/src/main/resources/python/ByteBuffer.py index 57e1a978..f9ebc760 100644 --- a/protocol/src/main/resources/python/ByteBuffer.py +++ b/protocol/src/main/resources/python/ByteBuffer.py @@ -353,13 +353,6 @@ class ByteBuffer(): self.readOffset += length return value - def writePacketFlag(self, value): - if value is None: - self.writeBool(False) - else: - self.writeBool(True) - pass - def writePacket(self, packet, protocolId): protocolRegistration = ProtocolManager.getProtocol(protocolId) protocolRegistration.write(self, packet) diff --git a/protocol/src/test/python/zfoopy/ByteBuffer.py b/protocol/src/test/python/zfoopy/ByteBuffer.py index 57e1a978..f9ebc760 100644 --- a/protocol/src/test/python/zfoopy/ByteBuffer.py +++ b/protocol/src/test/python/zfoopy/ByteBuffer.py @@ -353,13 +353,6 @@ class ByteBuffer(): self.readOffset += length return value - def writePacketFlag(self, value): - if value is None: - self.writeBool(False) - else: - self.writeBool(True) - pass - def writePacket(self, packet, protocolId): protocolRegistration = ProtocolManager.getProtocol(protocolId) protocolRegistration.write(self, packet)