summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-07 11:53:38 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-07 11:53:38 -0300
commit79b0035d2ed166be340fcf628744e319200d06d2 (patch)
tree76b91206aba347bc1a25057da4dcecbf4d902d8d /etc/inc/pkg-utils.inc
parent106574d1858008c03fbe9df94975350a09d78fa9 (diff)
downloadpfsense-79b0035d2ed166be340fcf628744e319200d06d2.zip
pfsense-79b0035d2ed166be340fcf628744e319200d06d2.tar.gz
Remove unused function does_package_depend()
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 6a76e44..25199d6 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -894,22 +894,6 @@ function install_package_xml($pkg) {
return true;
}
-function does_package_depend($pkg) {
- // Should not happen, but just in case.
- if (!$pkg) {
- return;
- }
- $pkg_var_db_dir = glob("/var/db/pkg/{$pkg}*");
- // If this package has dependency then return true
- foreach ($pkg_var_db_dir as $pvdd) {
- if (file_exists("{$vardb}/{$pvdd}/+REQUIRED_BY") && count(file("{$vardb}/{$pvdd}/+REQUIRED_BY")) > 0) {
- return true;
- }
- }
- // Did not find a record of dependencies, so return false.
- return false;
-}
-
function delete_package($pkg) {
global $config, $g, $static_output, $vardb;
OpenPOWER on IntegriCloud