Remove unused variables

This commit is contained in:
Simon Ser
2024-09-28 21:43:23 +02:00
parent 6747c03a75
commit 6693cc0c78
10 changed files with 6 additions and 18 deletions

View File

@@ -311,7 +311,6 @@ export default class Client extends EventTarget {
}
let deleteBatch = null;
let k;
switch (msg.command) {
case irc.RPL_WELCOME:
if (this.params.saslPlain && !this.supportsCap) {
@@ -434,7 +433,6 @@ export default class Client extends EventTarget {
if (this.status === Client.Status.REGISTERED) {
break;
}
let reason = msg.params[msg.params.length - 1];
if (msg.params[0] === "BOUNCER" && msg.params[2] === "BIND") {
this.dispatchError(new Error("Failed to bind to bouncer network", {
cause: new IRCError(msg),
@@ -867,7 +865,6 @@ export default class Client extends EventTarget {
fetchBatch(msg, batchType) {
let batchName = null;
let messages = [];
let cmd = msg.command;
return this.roundtrip(msg, (msg) => {
if (batchName) {
let batch = msg.batch;

View File

@@ -145,12 +145,6 @@ export function formatTags(tags) {
}
export function parsePrefix(s) {
let prefix = {
name: null,
user: null,
host: null,
};
let host = null;
let i = s.indexOf("@");
if (i > 0) {