mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
Remove unused function return_bytes
This commit is contained in:
parent
2870f42ca2
commit
4704bf6394
1 changed files with 0 additions and 14 deletions
|
@ -209,20 +209,6 @@ function get_cats_and_terms($item)
|
|||
return [$categories, $folders];
|
||||
}
|
||||
|
||||
/**
|
||||
* return number of bytes in size (K, M, G)
|
||||
* @param string $size_str
|
||||
* @return int
|
||||
*/
|
||||
function return_bytes($size_str) {
|
||||
switch (substr ($size_str, -1)) {
|
||||
case 'M': case 'm': return (int)$size_str * 1048576;
|
||||
case 'K': case 'k': return (int)$size_str * 1024;
|
||||
case 'G': case 'g': return (int)$size_str * 1073741824;
|
||||
default: return $size_str;
|
||||
}
|
||||
}
|
||||
|
||||
/// @TODO Rewrite this
|
||||
function is_a_date_arg($s) {
|
||||
$i = intval($s);
|
||||
|
|
Loading…
Reference in a new issue