From 65352c730fed32e5e263b68f0d083a7d71a7503f Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Sun, 1 Oct 2017 15:49:55 +0200
Subject: [PATCH 1/2] Remove the unused `isWorker` property from
 `src/display/global.js`

This has been completely unused since commit https://github.com/mozilla/pdf.js/commit/1d12aed5cac6a0caccb0550e0aad4ef9f6bb263d, in PR 7126, almost one and a half years ago.
---
 src/display/global.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/display/global.js b/src/display/global.js
index 926f3d393..812456002 100644
--- a/src/display/global.js
+++ b/src/display/global.js
@@ -34,8 +34,6 @@ import { Metadata } from './metadata';
 import { renderTextLayer } from './text_layer';
 import { SVGGraphics } from './svg';
 
-var isWorker = (typeof window === 'undefined');
-
 // The global PDFJS object is now deprecated and will not be supported in
 // the future. The members below are maintained for backward  compatibility
 // and shall not be extended or modified. If the global.js is included as
@@ -306,6 +304,5 @@ PDFJS.UnsupportedManager = _UnsupportedManager;
 
 export {
   globalScope,
-  isWorker,
   PDFJS,
 };

From 5b67c7594cce0ff48e73420f2a1d08b12e3da0ba Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Sun, 1 Oct 2017 15:57:18 +0200
Subject: [PATCH 2/2] Remove the unused `Util.sign` function from
 `src/shared/util.js`

This has been completely unused since commit https://github.com/mozilla/pdf.js/commit/10bb6c9ec052663f73e8ab168272bc98e4e902d4, in PR 2505, more than four and a half years ago.
---
 src/shared/util.js | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/shared/util.js b/src/shared/util.js
index 30751a935..ce9a50453 100644
--- a/src/shared/util.js
+++ b/src/shared/util.js
@@ -800,10 +800,6 @@ var Util = (function UtilClosure() {
     return result;
   };
 
-  Util.sign = function Util_sign(num) {
-    return num < 0 ? -1 : 1;
-  };
-
   var ROMAN_NUMBER_MAP = [
     '', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM',
     '', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC',