From 4d7062fc4302799210f403a260844419f36a4035 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 26 Nov 2019 23:18:17 -0700 Subject: [PATCH] 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. --- chrome/content/zotero/xpcom/utilities_internal.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities_internal.js b/chrome/content/zotero/xpcom/utilities_internal.js index 4162d79881..ec7df9e4f7 100644 --- a/chrome/content/zotero/xpcom/utilities_internal.js +++ b/chrome/content/zotero/xpcom/utilities_internal.js @@ -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 *