Skip to content

Commit fe3e0a0

Browse files
committed
remove unused variables
1 parent 5a873c7 commit fe3e0a0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/readline.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -964,16 +964,11 @@ exports.emitKeypressEvents = emitKeypressEvents;
964964

965965
// Regexes used for ansi escape code splitting
966966
const metaKeyCodeReAnywhere = /(?:\x1b)([a-zA-Z0-9])/;
967-
const metaKeyCodeRe = new RegExp('^' + metaKeyCodeReAnywhere.source + '$');
968967
const functionKeyCodeReAnywhere = new RegExp('(?:\x1b+)(O|N|\\[|\\[\\[)(?:' + [
969968
'(\\d+)(?:;(\\d+))?([~^$])',
970969
'(?:M([@ #!a`])(.)(.))', // mouse
971970
'(?:1;)?(\\d+)?([a-zA-Z])'
972971
].join('|') + ')');
973-
const functionKeyCodeRe = new RegExp('^' + functionKeyCodeReAnywhere.source);
974-
const escapeCodeReAnywhere = new RegExp([
975-
functionKeyCodeReAnywhere.source, metaKeyCodeReAnywhere.source, /\x1b./.source
976-
].join('|'));
977972

978973

979974
function* emitKeys(stream) {

0 commit comments

Comments
 (0)