From ae786f0368c093ef2255351a1cd5484c037cdc9b Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 7 May 2015 11:48:14 -0300 Subject: Remove unused function squash_from_bytes() --- etc/inc/pkg-utils.inc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'etc/inc/pkg-utils.inc') diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 6f7d171..96e160d 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -1175,20 +1175,6 @@ function walk_depend($depend, $pkgdb = "", $alreadyseen = "") { return $size; } -function squash_from_bytes($size, $round = "") { - $conv = array(1 => "B", "K", "M", "G"); - foreach ($conv as $div => $suffix) { - $sizeorig = $size; - if (($size /= 1024) < 1) { - if ($round) { - $sizeorig = round($sizeorig, $round); - } - return $sizeorig . $suffix; - } - } - return; -} - function pkg_reinstall_all() { global $g, $config; -- cgit v1.1