Skip to content

Commit

Permalink
Remove globals.js (#3849)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjethani authored Aug 23, 2021
1 parent d13294d commit d959c7a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 51 deletions.
2 changes: 0 additions & 2 deletions src/js/biditrie.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
Home: https://github.com/gorhill/uBlock
*/

/* globals WebAssembly vAPI */

'use strict';

/*******************************************************************************
Expand Down
40 changes: 0 additions & 40 deletions src/js/globals.js

This file was deleted.

6 changes: 1 addition & 5 deletions src/js/logger-ui-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

/******************************************************************************/

import globals from './globals.js';

/******************************************************************************/

(( ) => {

/******************************************************************************/
Expand All @@ -47,7 +43,7 @@ if (

/******************************************************************************/

const logger = globals.logger;
const logger = self.logger;
var inspectorConnectionId;
var inspectedTabId = 0;
var inspectedURL = '';
Expand Down
3 changes: 1 addition & 2 deletions src/js/logger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

/******************************************************************************/

import globals from './globals.js';
import { hostnameFromURI } from './uri-utils.js';

/******************************************************************************/
Expand All @@ -34,7 +33,7 @@ import { hostnameFromURI } from './uri-utils.js';
// accumulated over time.

const messaging = vAPI.messaging;
const logger = globals.logger = { ownerId: Date.now() };
const logger = self.logger = { ownerId: Date.now() };
const logDate = new Date();
const logDateTimezoneOffset = logDate.getTimezoneOffset() * 60000;
const loggerEntries = [];
Expand Down
1 change: 0 additions & 1 deletion tools/make-browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ mkdir -p $DES/js
cp src/js/base64-custom.js $DES/js
cp src/js/biditrie.js $DES/js
cp src/js/filtering-context.js $DES/js
cp src/js/globals.js $DES/js
cp src/js/hntrie.js $DES/js
cp src/js/static-filtering-parser.js $DES/js
cp src/js/static-net-filtering.js $DES/js
Expand Down
1 change: 0 additions & 1 deletion tools/make-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ cp src/js/base64-custom.js $DES/js
cp src/js/biditrie.js $DES/js
cp src/js/dynamic-net-filtering.js $DES/js
cp src/js/filtering-context.js $DES/js
cp src/js/globals.js $DES/js
cp src/js/hnswitches.js $DES/js
cp src/js/hntrie.js $DES/js
cp src/js/static-filtering-parser.js $DES/js
Expand Down

0 comments on commit d959c7a

Please sign in to comment.