Browse Source

Stop including cidmaps.js

In b5b94a4af3, i.e. PR #4259, we stopped using cidmaps.js. Despite that, it's still included when PDF.js is built. At almost 0.5 MB (and approx. 7000 lines), this is currently the single largest file in the codebase.
Including such a large file in the builds, when it is not actually used, seems extremely wasteful; hence this patch.
Jonas Jenwald 11 years ago
parent
commit
c3c72948b9
  1. 11
      src/core/fonts.js
  2. 1
      src/worker_loader.js

11
src/core/fonts.js

@ -14,12 +14,11 @@ @@ -14,12 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals assert, bytesToString, CIDToUnicodeMaps, error, ExpertCharset,
ExpertSubsetCharset, FileReaderSync, GlyphsUnicode, info, isArray,
isNum, ISOAdobeCharset, Stream, stringToArray, stringToBytes,
string32, TextDecoder, warn, Lexer, Util, FONT_IDENTITY_MATRIX,
FontRendererFactory, shadow, isString, IdentityCMap, Name,
CMapFactory, PDFJS, readUint32, FontType */
/* globals FONT_IDENTITY_MATRIX, FontType, warn, GlyphsUnicode, error, string32,
readUint32, stringToArray, Stream, FontRendererFactory, shadow,
bytesToString, info, assert, IdentityCMap, Name, CMapFactory, PDFJS,
isNum, Lexer, isArray, ISOAdobeCharset, ExpertCharset,
ExpertSubsetCharset, Util */
'use strict';

1
src/worker_loader.js

@ -31,7 +31,6 @@ var otherFiles = [ @@ -31,7 +31,6 @@ var otherFiles = [
'core/core.js',
'core/obj.js',
'core/charsets.js',
'core/cidmaps.js',
'core/annotation.js',
'core/function.js',
'core/colorspace.js',

Loading…
Cancel
Save