From e40774d62fec6373f1af4e3e111ccd618e2d1abd Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 13 Apr 2023 13:06:56 +0100 Subject: [PATCH] Block: make internal methods private (they are no longer used outside of Block) --- src/block/Block.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/block/Block.php b/src/block/Block.php index bfbfcb3b6..8fbb8123d 100644 --- a/src/block/Block.php +++ b/src/block/Block.php @@ -190,10 +190,7 @@ class Block{ return $this->requiredStateDataBits; } - /** - * @internal - */ - final public function decodeTypeData(int $data) : void{ + private function decodeTypeData(int $data) : void{ $reader = new RuntimeDataReader($this->requiredTypeDataBits, $data); $this->describeType($reader); @@ -222,10 +219,7 @@ class Block{ $this->decodeStateData($reader->readInt($this->requiredStateDataBits)); } - /** - * @internal - */ - final public function computeTypeData() : int{ + private function computeTypeData() : int{ $writer = new RuntimeDataWriter($this->requiredTypeDataBits); $this->describeType($writer);