Skip to content

Commit 0b8b752

Browse files
authored
Remove unused genArgSequence and needsQuoting. NFC (#21505)
The usage of genArgSequence removed in #17420. The usage of needsQuoting was removed in #17462
1 parent 67bb39d commit 0b8b752

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/modules.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88

99
// Various namespace-like modules
1010

11-
// Constructs an array ['a0', 'a1', 'a2', ..., 'a(n-1)']
12-
function genArgSequence(n) {
13-
const args = [];
14-
for (let i = 0; i < n; ++i) {
15-
args.push('a' + i);
16-
}
17-
return args;
18-
}
19-
2011
// List of symbols that were added from the library.
2112
globalThis.librarySymbols = [];
2213

src/parseTools.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,6 @@ function isNiceIdent(ident, loose) {
167167
return /^\(?[$_]+[\w$_\d ]*\)?$/.test(ident);
168168
}
169169

170-
// Simple variables or numbers, or things already quoted, do not need to be quoted
171-
function needsQuoting(ident) {
172-
if (/^[-+]?[$_]?[\w$_\d]*$/.test(ident)) return false; // number or variable
173-
if (ident[0] === '(' && ident[ident.length - 1] === ')' && ident.indexOf('(', 1) < 0) return false; // already fully quoted
174-
return true;
175-
}
176-
177170
globalThis.POINTER_SIZE = MEMORY64 ? 8 : 4;
178171
globalThis.POINTER_MAX = MEMORY64 ? 'Number.MAX_SAFE_INTEGER' : '0xFFFFFFFF';
179172
globalThis.STACK_ALIGN = 16;

0 commit comments

Comments
 (0)