Remove Zotero.Utilities.Internal.normalize()

It no longer works in Fx60, and String.prototype.normalize() has been
available since 2014, so that should just be used instead.
This commit is contained in:
Dan Stillman 2019-11-26 23:18:17 -07:00
parent 8c7677a009
commit 4d7062fc43

View file

@ -360,18 +360,6 @@ Zotero.Utilities.Internal = {
},
/**
* Unicode normalization
*/
"normalize":function(str) {
var normalizer = Components.classes["@mozilla.org/intl/unicodenormalizer;1"]
.getService(Components.interfaces.nsIUnicodeNormalizer);
var obj = {};
str = normalizer.NormalizeUnicodeNFC(str, obj);
return obj.value;
},
/**
* Return the byte length of a UTF-8 string
*