mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 22:15:30 +00:00
Utils: remove dead function
This commit is contained in:
parent
7eb8d8e366
commit
11d21448fc
@ -70,15 +70,12 @@ use function preg_match_all;
|
||||
use function preg_replace;
|
||||
use function rmdir;
|
||||
use function scandir;
|
||||
use function sha1;
|
||||
use function spl_object_hash;
|
||||
use function str_pad;
|
||||
use function str_replace;
|
||||
use function str_split;
|
||||
use function stripos;
|
||||
use function strlen;
|
||||
use function strpos;
|
||||
use function strtolower;
|
||||
use function strval;
|
||||
use function substr;
|
||||
use function sys_get_temp_dir;
|
||||
@ -102,21 +99,6 @@ class Utils{
|
||||
/** @var UUID|null */
|
||||
private static $serverUniqueId = null;
|
||||
|
||||
/**
|
||||
* Generates an unique identifier to a callable
|
||||
*
|
||||
* @param callable $variable
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getCallableIdentifier(callable $variable) : string{
|
||||
if(is_array($variable)){
|
||||
return sha1(strtolower(spl_object_hash($variable[0])) . "::" . strtolower($variable[1]));
|
||||
}else{
|
||||
return sha1(strtolower($variable));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a readable identifier for the given Closure, including file and line.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user