Skip to content

Commit

Permalink
Binary: Remove unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed May 18, 2021
1 parent ae63eb2 commit 595c4ca
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 595c4ca

Please sign in to comment.