From d528fdddfabc9ff423077de02de877cdd69f27d0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 28 Feb 2019 16:20:58 +0000 Subject: [PATCH] DataPacket: Remove useless abstract function this is declared in the Packet interface, so it doesn't need to be here anymore. --- .../network/mcpe/protocol/DataPacket.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/DataPacket.php b/src/pocketmine/network/mcpe/protocol/DataPacket.php index 3d683ee99..ffea84b63 100644 --- a/src/pocketmine/network/mcpe/protocol/DataPacket.php +++ b/src/pocketmine/network/mcpe/protocol/DataPacket.php @@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol; #include use pocketmine\network\BadPacketException; -use pocketmine\network\mcpe\handler\SessionHandler; use pocketmine\network\mcpe\NetworkBinaryStream; use pocketmine\utils\BinaryDataException; use pocketmine\utils\Utils; @@ -121,23 +120,6 @@ abstract class DataPacket extends NetworkBinaryStream implements Packet{ */ abstract protected function encodePayload() : void; - /** - * Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for - * this. - * - * This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a - * debug message will be logged with a hexdump of the packet. - * - * Typically this method returns the return value of the handler in the supplied SessionHandler. See other packets - * for examples how to implement this. - * - * @param SessionHandler $handler - * - * @return bool true if the packet was handled successfully, false if not. - * @throws BadPacketException if broken data was found in the packet - */ - abstract public function handle(SessionHandler $handler) : bool; - public function __debugInfo(){ $data = []; foreach($this as $k => $v){