Remove normalizeAttributeValue()
authorEvan McIntire <mcintire.evan@gmail.com>
Sun, 28 Dec 2014 04:09:51 +0000 (23:09 -0500)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 31 Dec 2014 11:38:39 +0000 (11:38 +0000)
Sanitizer::normalizeAttributeValue is completely unused and private, and
as such, should be removed

Change-Id: I655ef90fe97a775011f9d16c0b51feb2612aec26

includes/Sanitizer.php

index 11c30a2..d35bbec 100644 (file)
@@ -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( '"', '&quot;',
-                       self::normalizeWhitespace(
-                               Sanitizer::normalizeCharReferences( $text ) ) );
-       }
-
        /**
         * @param string $text
         * @return string