mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -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}
|
||||||
buffer=${activeBuffer}
|
buffer=${activeBuffer}
|
||||||
server=${activeServer}
|
server=${activeServer}
|
||||||
bouncerNetwork=${activeBouncerNetwork}
|
|
||||||
settings=${this.state.settings}
|
settings=${this.state.settings}
|
||||||
onChannelClick=${this.handleChannelClick}
|
onChannelClick=${this.handleChannelClick}
|
||||||
onNickClick=${this.handleNickClick}
|
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 linkify from "../lib/linkify.js";
|
||||||
import { strip as stripANSI } from "../lib/ansi.js";
|
import { strip as stripANSI } from "../lib/ansi.js";
|
||||||
import { BufferType, ServerStatus, getServerName } from "../state.js";
|
import { BufferType, ServerStatus, getServerName } from "../state.js";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as irc from "../lib/irc.js";
|
import * as irc from "../lib/irc.js";
|
||||||
import { strip as stripANSI } from "../lib/ansi.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";
|
import { BufferType, Unread, ServerStatus, getBufferURL, getServerName } from "../state.js";
|
||||||
|
|
||||||
function BufferItem(props) {
|
function BufferItem(props) {
|
||||||
|
|
|
@ -151,7 +151,6 @@ class LogLine extends Component {
|
||||||
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text), onChannelClick)}`;
|
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text), onChannelClick)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let status = null;
|
|
||||||
let allowedPrefixes = server.statusMsg;
|
let allowedPrefixes = server.statusMsg;
|
||||||
if (target !== buf.name && allowedPrefixes) {
|
if (target !== buf.name && allowedPrefixes) {
|
||||||
let parts = irc.parseTargetPrefix(target, allowedPrefixes);
|
let parts = irc.parseTargetPrefix(target, allowedPrefixes);
|
||||||
|
@ -673,7 +672,6 @@ export default class Buffer extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
let server = this.props.server;
|
let server = this.props.server;
|
||||||
let bouncerNetwork = this.props.bouncerNetwork;
|
|
||||||
let settings = this.props.settings;
|
let settings = this.props.settings;
|
||||||
let serverName = server.name;
|
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 { keybindings } from "../keybindings.js";
|
||||||
import commands from "../commands.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";
|
import * as irc from "../lib/irc.js";
|
||||||
|
|
||||||
export default function Membership(props) {
|
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();
|
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) {
|
function getSiblingBuffer(buffers, bufID, delta) {
|
||||||
let bufList = Array.from(buffers.values());
|
let bufList = Array.from(buffers.values());
|
||||||
|
|
|
@ -311,7 +311,6 @@ export default class Client extends EventTarget {
|
||||||
}
|
}
|
||||||
|
|
||||||
let deleteBatch = null;
|
let deleteBatch = null;
|
||||||
let k;
|
|
||||||
switch (msg.command) {
|
switch (msg.command) {
|
||||||
case irc.RPL_WELCOME:
|
case irc.RPL_WELCOME:
|
||||||
if (this.params.saslPlain && !this.supportsCap) {
|
if (this.params.saslPlain && !this.supportsCap) {
|
||||||
|
@ -434,7 +433,6 @@ export default class Client extends EventTarget {
|
||||||
if (this.status === Client.Status.REGISTERED) {
|
if (this.status === Client.Status.REGISTERED) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
let reason = msg.params[msg.params.length - 1];
|
|
||||||
if (msg.params[0] === "BOUNCER" && msg.params[2] === "BIND") {
|
if (msg.params[0] === "BOUNCER" && msg.params[2] === "BIND") {
|
||||||
this.dispatchError(new Error("Failed to bind to bouncer network", {
|
this.dispatchError(new Error("Failed to bind to bouncer network", {
|
||||||
cause: new IRCError(msg),
|
cause: new IRCError(msg),
|
||||||
|
@ -867,7 +865,6 @@ export default class Client extends EventTarget {
|
||||||
fetchBatch(msg, batchType) {
|
fetchBatch(msg, batchType) {
|
||||||
let batchName = null;
|
let batchName = null;
|
||||||
let messages = [];
|
let messages = [];
|
||||||
let cmd = msg.command;
|
|
||||||
return this.roundtrip(msg, (msg) => {
|
return this.roundtrip(msg, (msg) => {
|
||||||
if (batchName) {
|
if (batchName) {
|
||||||
let batch = msg.batch;
|
let batch = msg.batch;
|
||||||
|
|
|
@ -145,12 +145,6 @@ export function formatTags(tags) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function parsePrefix(s) {
|
export function parsePrefix(s) {
|
||||||
let prefix = {
|
|
||||||
name: null,
|
|
||||||
user: null,
|
|
||||||
host: null,
|
|
||||||
};
|
|
||||||
|
|
||||||
let host = null;
|
let host = null;
|
||||||
let i = s.indexOf("@");
|
let i = s.indexOf("@");
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
|
|
Loading…
Reference in a new issue