From 71588440e9b1a189b727cc7c75fb0feb97ba72d4 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Thu, 1 May 2008 12:20:39 +0000 Subject: [PATCH] Whoops... left some testing code in. --- question/format.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/question/format.php b/question/format.php index 08eed7631..5e64108d9 100644 --- a/question/format.php +++ b/question/format.php @@ -552,32 +552,6 @@ class qformat_default { return $newfile; } - /** - * Utility function to reconstruct part of the - * xml data structure (from xmlize) as a string in order - * to identify the actual data therein - * @param array $xml section of the xml data structure - * @return string data with everything else removed - */ - function xmltostring( $xml ) { - // if it's not an array then it's probably just data - if (!is_array($xml)) { - $text = s(addslashes($xml)); - } - else { - // otherwise parse the array - $text = ''; - foreach ($xml as $tag=>$data) { - // if tag is '@' then it's attributes and we don't care - if ($tag!=='@') { - $text = $text . $this->xmltostring( $data ); - } - } - } - - return $text; - } - /******************* * EXPORT FUNCTIONS -- 2.11.4.GIT