Remove deprecated methods
This commit is contained in:
@@ -1540,25 +1540,6 @@ final class Binkp extends BaseProtocol
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip blanks at the beginning of a string
|
||||
*
|
||||
* @param string $str
|
||||
* @return string
|
||||
* @throws \Exception
|
||||
* @deprecated - use ltrim instead
|
||||
*/
|
||||
private function skip_blanks(string $str): string
|
||||
{
|
||||
$c = 0;
|
||||
|
||||
if ($str != NULL)
|
||||
while ($this->isSpace(substr($str,$c,1)))
|
||||
$c++;
|
||||
|
||||
return substr($str,$c);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the string delimited by char and shorten the input to the remaining characters
|
||||
*
|
||||
@@ -1579,20 +1560,4 @@ final class Binkp extends BaseProtocol
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the string is a space
|
||||
*
|
||||
* @param string $str
|
||||
* @return bool
|
||||
* @throws \Exception
|
||||
* @deprecated No longer required since we are using ltrim
|
||||
*/
|
||||
private function isSpace(string $str):bool
|
||||
{
|
||||
if (strlen($str) > 1)
|
||||
throw new \Exception('String is more than 1 char');
|
||||
|
||||
return $str && in_array($str,[' ',"\n","\r","\v","\f","\t"]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user