From 3a724c7e3bb62fbd0e626025c290f78bd89fc1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 5 May 2009 23:49:04 +0000 Subject: Remove another unused function. --- etc/inc/pfsense-utils.inc | 20 -------------------- 1 file changed, 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. -- cgit v1.1