diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-07 12:08:46 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-07 12:08:46 -0300 |
commit | 78c61a7563442f1a51977384eb05ecbde9c21ea4 (patch) | |
tree | 9daae4c4b62db4e93d3891c018dc87e64bd97c6d /etc/inc/pkg-utils.inc | |
parent | b27c5cbf3e8d8969bce26d9b46f1a426d238185e (diff) | |
download | pfsense-78c61a7563442f1a51977384eb05ecbde9c21ea4.zip pfsense-78c61a7563442f1a51977384eb05ecbde9c21ea4.tar.gz |
Remove unused function expand_to_bytes() get_pkg_db() and get_pkg_interfaces_select_source()
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 25199d6..dafddeb 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -1093,29 +1093,6 @@ function delete_package_xml($pkg) { write_config("Removed {$pkg} package.\n"); } -function expand_to_bytes($size) { - $conv = array( - "G" => "3", - "M" => "2", - "K" => "1", - "B" => "0" - ); - $suffix = substr($size, -1); - if (!in_array($suffix, array_keys($conv))) { - return $size; - } - $size = substr($size, 0, -1); - for ($i = 0; $i < $conv[$suffix]; $i++) { - $size *= 1024; - } - return $size; -} - -function get_pkg_db() { - global $g; - return return_dir_as_array($g['vardb_path'] . '/pkg'); -} - function pkg_reinstall_all() { global $g, $config; @@ -1252,22 +1229,6 @@ function package_skip_tests($index,$requested_version) { return false; } -function get_pkg_interfaces_select_source($include_localhost=false) { - $interfaces = get_configured_interface_with_descr(); - $ssifs = array(); - foreach ($interfaces as $iface => $ifacename) { - $tmp["name"] = $ifacename; - $tmp["value"] = $iface; - $ssifs[] = $tmp; - } - if ($include_localhost) { - $tmp["name"] = "Localhost"; - $tmp["value"] = "lo0"; - $ssifs[] = $tmp; - } - return $ssifs; -} - function verify_all_package_servers() { return verify_package_server(get_active_xml_rpc_base_url()); } |