mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-15 03:15:01 -05:00
Remove dead appendMessage function
This commit is contained in:
parent
f7569a43b7
commit
273bbbd9af
1 changed files with 0 additions and 24 deletions
|
@ -126,30 +126,6 @@ function switchBuffer(buf) {
|
|||
}
|
||||
}
|
||||
|
||||
function appendMessage(target, date, nickname, text) {
|
||||
var timestamp = document.createElement("a");
|
||||
timestamp.href = "#";
|
||||
timestamp.className = "timestamp";
|
||||
timestamp.innerText = date.toLocaleTimeString(undefined, {
|
||||
timeStyle: "short",
|
||||
hour12: false,
|
||||
});
|
||||
|
||||
var nick = document.createElement("a");
|
||||
nick.href = "#";
|
||||
nick.className = "nick";
|
||||
nick.innerText = nickname;
|
||||
|
||||
var line = document.createElement("div");
|
||||
line.className = "logline";
|
||||
line.appendChild(timestamp);
|
||||
line.appendChild(document.createTextNode(" <"));
|
||||
line.appendChild(nick);
|
||||
line.appendChild(document.createTextNode("> "));
|
||||
line.appendChild(document.createTextNode(text));
|
||||
logElt.appendChild(line);
|
||||
}
|
||||
|
||||
var serverBuffer = createBuffer(server.name);
|
||||
serverBuffer.readOnly = true;
|
||||
switchBuffer(serverBuffer);
|
||||
|
|
Loading…
Reference in a new issue