From 4d0c759b7fbfc651fbd8c155cecf73d503bb643f Mon Sep 17 00:00:00 2001 From: Pedro Luiz Cabral Salomon Prado Date: Tue, 15 Oct 2019 19:39:25 -0300 Subject: [PATCH] Change variable assignment (#11247) Remove unused variable assignment in `src/core/fonts.js` --- src/core/fonts.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/fonts.js b/src/core/fonts.js index 9fe3c8acf..edb642be4 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -1817,10 +1817,9 @@ var Font = (function FontClosure() { } // The first glyph is duplicated. var numGlyphsOut = dupFirstEntry ? numGlyphs + 1 : numGlyphs; - var locaData = loca.data; var locaDataSize = itemSize * (1 + numGlyphsOut); // Resize loca table to account for duplicated glyph. - locaData = new Uint8Array(locaDataSize); + var locaData = new Uint8Array(locaDataSize); locaData.set(loca.data.subarray(0, locaDataSize)); loca.data = locaData; // removing the invalid glyphs