From 855fb87dcf39b8bf00dbe76066701b780509ed0d Mon Sep 17 00:00:00 2001 From: Evan McIntire Date: Sat, 27 Dec 2014 23:09:51 -0500 Subject: [PATCH] Remove normalizeAttributeValue() Sanitizer::normalizeAttributeValue is completely unused and private, and as such, should be removed Change-Id: I655ef90fe97a775011f9d16c0b51feb2612aec26 --- includes/Sanitizer.php | 18 ------------------ 1 file changed, 18 deletions(-) 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 -- 2.20.1