summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-07 11:48:14 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-07 11:48:14 -0300
commitae786f0368c093ef2255351a1cd5484c037cdc9b (patch)
treea0bac37e589f71b707e0aaa501dc103d671126c7 /etc/inc/pkg-utils.inc
parent45cd5fcd308cf63e955725289daa57dbb5e1f455 (diff)
downloadpfsense-ae786f0368c093ef2255351a1cd5484c037cdc9b.zip
pfsense-ae786f0368c093ef2255351a1cd5484c037cdc9b.tar.gz
Remove unused function squash_from_bytes()
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc14
1 files changed, 0 insertions, 14 deletions
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;
OpenPOWER on IntegriCloud