Skip to content

Commit

Permalink
Remove unused genArgSequence and needsQuoting. NFC
Browse files Browse the repository at this point in the history
The usage of genArgSequence removed in #17420.

The usage of needsQuoting was removed in #17462
  • Loading branch information
sbc100 committed Mar 11, 2024
1 parent 2ba2078 commit 1def21c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions src/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@

// Various namespace-like modules

// Constructs an array ['a0', 'a1', 'a2', ..., 'a(n-1)']
function genArgSequence(n) {
const args = [];
for (let i = 0; i < n; ++i) {
args.push('a' + i);
}
return args;
}

// List of symbols that were added from the library.
globalThis.librarySymbols = [];

Expand Down
7 changes: 0 additions & 7 deletions src/parseTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ function isNiceIdent(ident, loose) {
return /^\(?[$_]+[\w$_\d ]*\)?$/.test(ident);
}

// Simple variables or numbers, or things already quoted, do not need to be quoted
function needsQuoting(ident) {
if (/^[-+]?[$_]?[\w$_\d]*$/.test(ident)) return false; // number or variable
if (ident[0] === '(' && ident[ident.length - 1] === ')' && ident.indexOf('(', 1) < 0) return false; // already fully quoted
return true;
}

globalThis.POINTER_SIZE = MEMORY64 ? 8 : 4;
globalThis.POINTER_MAX = MEMORY64 ? 'Number.MAX_SAFE_INTEGER' : '0xFFFFFFFF';
globalThis.STACK_ALIGN = 16;
Expand Down

0 comments on commit 1def21c

Please sign in to comment.