From 595c4ca4b8056777729c8cc5db9614c731eaf63b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 18 May 2021 16:23:45 +0100 Subject: [PATCH] Binary: Remove unused constants --- src/Binary.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Binary.php b/src/Binary.php index 45c375e..e77dde6 100644 --- a/src/Binary.php +++ b/src/Binary.php @@ -28,8 +28,6 @@ use InvalidArgumentException; use function chr; -use function define; -use function defined; use function ord; use function pack; use function preg_replace; @@ -39,14 +37,7 @@ use function unpack; use const PHP_INT_MAX; -if(!defined("ENDIANNESS")){ - define("ENDIANNESS", (pack("s", 1) === "\0\1" ? Binary::BIG_ENDIAN : Binary::LITTLE_ENDIAN)); -} - class Binary{ - public const BIG_ENDIAN = 0x00; - public const LITTLE_ENDIAN = 0x01; - public static function signByte(int $value) : int{ return $value << 56 >> 56; }