Remove unused variables
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user