Skip to content

Commit 595c4ca

Browse files
committed
Binary: Remove unused constants
1 parent ae63eb2 commit 595c4ca

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Binary.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828

2929
use InvalidArgumentException;
3030
use function chr;
31-
use function define;
32-
use function defined;
3331
use function ord;
3432
use function pack;
3533
use function preg_replace;
@@ -39,14 +37,7 @@
3937
use function unpack;
4038
use const PHP_INT_MAX;
4139

42-
if(!defined("ENDIANNESS")){
43-
define("ENDIANNESS", (pack("s", 1) === "\0\1" ? Binary::BIG_ENDIAN : Binary::LITTLE_ENDIAN));
44-
}
45-
4640
class Binary{
47-
public const BIG_ENDIAN = 0x00;
48-
public const LITTLE_ENDIAN = 0x01;
49-
5041
public static function signByte(int $value) : int{
5142
return $value << 56 >> 56;
5243
}

0 commit comments

Comments
 (0)