summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-05 23:49:04 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-05 23:49:04 +0000
commit3a724c7e3bb62fbd0e626025c290f78bd89fc1d2 (patch)
tree7b44cfd44a954870a682ff67e495de271b3df741 /etc
parent6e17413e52521b685228039f6a7b5fb457254ad1 (diff)
downloadpfsense-3a724c7e3bb62fbd0e626025c290f78bd89fc1d2.zip
pfsense-3a724c7e3bb62fbd0e626025c290f78bd89fc1d2.tar.gz
Remove another unused function.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc20
1 files changed, 0 insertions, 20 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index af90190..c369ab6 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -435,26 +435,6 @@ function setup_microcode() {
enable_hardware_offloading($if);
}
-/****f* pfsense-utils/return_filename_as_array
- * NAME
- * return_filename_as_array - Return a file's contents as an array.
- * INPUTS
- * $filename - string containing the path to the desired file.
- * $strip - array of characters to strip - default is '#'.
- * RESULT
- * $file - array containing the file's contents.
- * NOTES
- * This function strips lines starting with '#' and leading/trailing whitespace by default.
- ******/
-function return_filename_as_array($filename, $strip = array('#')) {
- if(file_exists($filename)) $file = file($filename);
- if(is_array($file)) {
- foreach($file as $line) $line = trim($line);
- foreach($strip as $tostrip) $file = preg_grep("/^{$tostrip}/", $file, PREG_GREP_INVERT);
- }
- return $file;
-}
-
/****f* pfsense-utils/get_carp_status
* NAME
* get_carp_status - Return whether CARP is enabled or disabled.
OpenPOWER on IntegriCloud