From: Evan McIntire Date: Sun, 28 Dec 2014 04:09:51 +0000 (-0500) Subject: Remove normalizeAttributeValue() X-Git-Tag: 1.31.0-rc.0~12828 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=commitdiff_plain;h=855fb87dcf39b8bf00dbe76066701b780509ed0d;p=lhc%2Fweb%2Fwiklou.git Remove normalizeAttributeValue() Sanitizer::normalizeAttributeValue is completely unused and private, and as such, should be removed Change-Id: I655ef90fe97a775011f9d16c0b51feb2612aec26 --- diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 11c30a2591..d35bbece57 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -1267,24 +1267,6 @@ class Sanitizer { } } - /** - * Normalize whitespace and character references in an XML source- - * encoded text for an attribute value. - * - * See http://www.w3.org/TR/REC-xml/#AVNormalize for background, - * but note that we're not returning the value, but are returning - * XML source fragments that will be slapped into output. - * - * @param string $text - * @return string - * @todo Remove, unused? - */ - private static function normalizeAttributeValue( $text ) { - return str_replace( '"', '"', - self::normalizeWhitespace( - Sanitizer::normalizeCharReferences( $text ) ) ); - } - /** * @param string $text * @return string