[Fusionforge-commits] r10111 - trunk/src/common/include
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Wed Jun 23 23:05:29 CEST 2010
Author: aljeux
Date: 2010-06-23 23:05:29 +0200 (Wed, 23 Jun 2010)
New Revision: 10111
Modified:
trunk/src/common/include/cron_utils.php
trunk/src/common/include/escapingUtils.php
Log:
Cleaning dead code
Modified: trunk/src/common/include/cron_utils.php
===================================================================
--- trunk/src/common/include/cron_utils.php 2010-06-23 20:39:58 UTC (rev 10110)
+++ trunk/src/common/include/cron_utils.php 2010-06-23 21:05:29 UTC (rev 10111)
@@ -77,22 +77,6 @@
return false;
}
-function chrootPath($path) {
-
- if(checkChroot()) {
- $path = forge_get_config('chroot').$path;
- }
- return $path;
-}
-
-function chrootCommand($command) {
-
- if(checkChroot()) {
- $command = 'chroot '.forge_get_config('chroot').' '.$command;
- }
- return $command;
-}
-
//
// Create lock via semaphore so long running jobs don't overlap
//
Modified: trunk/src/common/include/escapingUtils.php
===================================================================
--- trunk/src/common/include/escapingUtils.php 2010-06-23 20:39:58 UTC (rev 10110)
+++ trunk/src/common/include/escapingUtils.php 2010-06-23 21:05:29 UTC (rev 10111)
@@ -318,43 +318,6 @@
}
/**
-* optionSpecialchars - escape a string which is in a <option>string</option>
-*
-* @param string $string string to escape
-* @return string escaped string
-*/
-function optionSpecialchars($string) {
- return htmlSpecialchars($string);
-}
-
-$htmlTranslationTable = get_html_translation_table(HTML_SPECIALCHARS);
-unset($htmlTranslationTable['&']);
-
-/**
-* textareaSpecialchars - escape a string which is in a textarea
-*
-* @param string $string string to escape
-* @return string escaped string
-*/
-function textareaSpecialchars($string) {
- global $htmlTranslationTable;
-
- return strtr($string, $htmlTranslationTable);
-}
-
-/**
-* unTextareaSpecialchars - clean a string escaped with textareaSpecialchars
-*
-* @param string $string escaped string
-* @return string clean string
-*/
-function unTextareaSpecialchars($string) {
- global $htmlTranslationTable;
-
- return strtr($string, array_flip($htmlTranslationTable));
-}
-
-/**
* getFilteredStringFromRequest - get a string from REQUEST
*
* @param string $key key of the wanted value
More information about the Fusionforge-commits
mailing list