# HG changeset patch # User Ian Neal # Date 1732468756 0 # Parent 9f455d30972ae34d363da61fa75dece40a390c28 Bug 1933083 - Remove unused encodeForXMLAttribute function for cZ utils.js. r=frg a=frg diff --git a/suite/extensions/irc/js/lib/utils.js b/suite/extensions/irc/js/lib/utils.js --- a/suite/extensions/irc/js/lib/utils.js +++ b/suite/extensions/irc/js/lib/utils.js @@ -250,22 +250,16 @@ function ecmaUnescape(str) }; // Replace the escape sequences %X, %XX, %uX, %uXX, %uXXX, and %uXXXX with // the characters they represent, where X is a hexadecimal digit. // See section B.2.2 of ECMA-262 rev3 for more information. return str.replace(/%u?([\da-f]{1,4})/ig, replaceEscapes); } -function encodeForXMLAttribute(value) { - return value.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """) - .replace(/'/g, "'"); -} - function replaceVars(str, vars) { // replace "string $with a $variable", with // "string " + vars["with"] + " with a " + vars["variable"] function doReplace(symbol) { var name = symbol.substr(1);