mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
fix(lint): remove unused variables in readline and ConsoleObject (#26455)
### What does this PR do? Just fixes lint errors ### How did you verify your code works?
This commit is contained in:
@@ -140,7 +140,7 @@ export function write(this: Console, input) {
|
||||
// to do extra work at startup, since most people do not need `console.Console`.
|
||||
// TODO: probably could extract `getStringWidth`; probably make that a native function. note how it is copied from `readline.js`
|
||||
export function createConsoleConstructor(console: typeof globalThis.console) {
|
||||
const { inspect, formatWithOptions, stripVTControlCharacters } = require("node:util");
|
||||
const { inspect, formatWithOptions } = require("node:util");
|
||||
const { isBuffer } = require("node:buffer");
|
||||
|
||||
const { validateObject, validateInteger, validateArray, validateOneOf } = require("internal/validators");
|
||||
@@ -155,7 +155,6 @@ export function createConsoleConstructor(console: typeof globalThis.console) {
|
||||
const StringPrototypePadStart = String.prototype.padStart;
|
||||
const StringPrototypeSplit = String.prototype.split;
|
||||
const NumberPrototypeToFixed = Number.prototype.toFixed;
|
||||
const StringPrototypeNormalize = String.prototype.normalize;
|
||||
const ArrayPrototypeMap = Array.prototype.map;
|
||||
const ArrayPrototypeJoin = Array.prototype.join;
|
||||
const ArrayPrototypePush = Array.prototype.push;
|
||||
|
||||
@@ -79,7 +79,6 @@ const StringPrototypeEndsWith = String.prototype.endsWith;
|
||||
const StringPrototypeRepeat = String.prototype.repeat;
|
||||
const StringPrototypeStartsWith = String.prototype.startsWith;
|
||||
const StringPrototypeTrim = String.prototype.trim;
|
||||
const StringPrototypeNormalize = String.prototype.normalize;
|
||||
const NumberIsNaN = Number.isNaN;
|
||||
const NumberIsFinite = Number.isFinite;
|
||||
const MathCeil = Math.ceil;
|
||||
|
||||
Reference in New Issue
Block a user