From eca2f88d281ab7b6c614ea10ae89e777948a17b9 Mon Sep 17 00:00:00 2001 From: yethee Date: Tue, 30 Apr 2024 17:10:46 +0300 Subject: [PATCH] Remove unused method EncodeUtil::fromBytes --- psalm-baseline.xml | 2 -- src/Util/EncodeUtil.php | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index d29adab..81b512e 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -3,11 +3,9 @@ - - diff --git a/src/Util/EncodeUtil.php b/src/Util/EncodeUtil.php index 5c79ebd..94bbc7f 100644 --- a/src/Util/EncodeUtil.php +++ b/src/Util/EncodeUtil.php @@ -7,7 +7,6 @@ use function array_map; use function bin2hex; use function hexdec; -use function pack; use function str_split; /** @psalm-type NonEmptyByteVector = non-empty-list> */ @@ -22,14 +21,4 @@ public static function toBytes(string $text): array { return array_map(hexdec(...), str_split(bin2hex($text), 2)); } - - /** - * @psalm-param NonEmptyByteVector $bytes - * - * @return non-empty-string - */ - public static function fromBytes(array $bytes): string - { - return pack('C*', ...$bytes); - } }