mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 03:04:59 -05:00
Remove unused variables
This commit is contained in:
parent
6747c03a75
commit
6693cc0c78
10 changed files with 6 additions and 18 deletions
|
@ -2271,7 +2271,6 @@ export default class App extends Component {
|
|||
<${Buffer}
|
||||
buffer=${activeBuffer}
|
||||
server=${activeServer}
|
||||
bouncerNetwork=${activeBouncerNetwork}
|
||||
settings=${this.state.settings}
|
||||
onChannelClick=${this.handleChannelClick}
|
||||
onNickClick=${this.handleNickClick}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { html, Component } from "../lib/index.js";
|
||||
import { html } from "../lib/index.js";
|
||||
import linkify from "../lib/linkify.js";
|
||||
import { strip as stripANSI } from "../lib/ansi.js";
|
||||
import { BufferType, ServerStatus, getServerName } from "../state.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import * as irc from "../lib/irc.js";
|
||||
import { strip as stripANSI } from "../lib/ansi.js";
|
||||
import { html, Component } from "../lib/index.js";
|
||||
import { html } from "../lib/index.js";
|
||||
import { BufferType, Unread, ServerStatus, getBufferURL, getServerName } from "../state.js";
|
||||
|
||||
function BufferItem(props) {
|
||||
|
|
|
@ -151,7 +151,6 @@ class LogLine extends Component {
|
|||
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text), onChannelClick)}`;
|
||||
}
|
||||
|
||||
let status = null;
|
||||
let allowedPrefixes = server.statusMsg;
|
||||
if (target !== buf.name && allowedPrefixes) {
|
||||
let parts = irc.parseTargetPrefix(target, allowedPrefixes);
|
||||
|
@ -673,7 +672,6 @@ export default class Buffer extends Component {
|
|||
}
|
||||
|
||||
let server = this.props.server;
|
||||
let bouncerNetwork = this.props.bouncerNetwork;
|
||||
let settings = this.props.settings;
|
||||
let serverName = server.name;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { html, Component } from "../lib/index.js";
|
||||
import { html } from "../lib/index.js";
|
||||
import { keybindings } from "../keybindings.js";
|
||||
import commands from "../commands.js";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { html, Component } from "../lib/index.js";
|
||||
import { html } from "../lib/index.js";
|
||||
import * as irc from "../lib/irc.js";
|
||||
|
||||
export default function Membership(props) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { html, Component } from "../lib/index.js";
|
||||
import { Component } from "../lib/index.js";
|
||||
|
||||
let store = new Map();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ReceiptType, Unread, BufferType, SERVER_BUFFER, receiptFromMessage } from "./state.js";
|
||||
import { ReceiptType, Unread, BufferType, receiptFromMessage } from "./state.js";
|
||||
|
||||
function getSiblingBuffer(buffers, bufID, delta) {
|
||||
let bufList = Array.from(buffers.values());
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue