Skip to content

Commit 70d6d9d

Browse files
Remove unused internal function Str::split
1 parent 3168771 commit 70d6d9d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/Util/Str.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,6 @@ public static function utf8(string $input, string $encoding = null)
4848
);
4949
}
5050

51-
/**
52-
* Split the given string into an array of characters.
53-
*
54-
* @param string $input
55-
*
56-
* @return \GrahamCampbell\ResultType\Result<string[],string>
57-
*/
58-
public static function split(string $input)
59-
{
60-
$result = \mb_str_split($input, 1, 'UTF-8');
61-
62-
if ($result === false) {
63-
/** @var \GrahamCampbell\ResultType\Result<string[],string> */
64-
return Error::create('Multibyte split failed.');
65-
}
66-
67-
/** @var \GrahamCampbell\ResultType\Result<string[],string> */
68-
return Success::create($result);
69-
}
70-
7151
/**
7252
* Search for a given substring of the input.
7353
*

0 commit comments

Comments
 (0)