diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-07 10:27:18 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-07 10:27:18 -0300 |
commit | 8341eb47272cb17969f2bbea40c61b27a9fb69c5 (patch) | |
tree | 5cfa1bb6e8b4156fd5d5047cbc5bb6bde8997a40 /etc | |
parent | ffa04fc2ddf7ead6f770bcc04ef5d588f907e48b (diff) | |
download | pfsense-8341eb47272cb17969f2bbea40c61b27a9fb69c5.zip pfsense-8341eb47272cb17969f2bbea40c61b27a9fb69c5.tar.gz |
Remove unused function add_text_to_file()
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 0da31f0..ed0fc80 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -451,27 +451,6 @@ function remove_text_from_file($file, $text) { } /* - * add_text_to_file($file, $text): adds $text to $file. - * replaces the text if it already exists. - */ -function add_text_to_file($file, $text, $replace = false) { - if (file_exists($file) and is_writable($file)) { - $filecontents = file($file); - $filecontents = array_map('rtrim', $filecontents); - array_push($filecontents, $text); - if ($replace) { - $filecontents = array_unique($filecontents); - } - - $file_text = implode("\n", $filecontents); - - @file_put_contents($file, $file_text); - return true; - } - return false; -} - -/* * after_sync_bump_adv_skew(): create skew values by 1S */ function after_sync_bump_adv_skew() { |