Remove dead appendMessage function

This commit is contained in:
Simon Ser 2020-04-24 19:06:12 +02:00
parent f7569a43b7
commit 273bbbd9af
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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); var serverBuffer = createBuffer(server.name);
serverBuffer.readOnly = true; serverBuffer.readOnly = true;
switchBuffer(serverBuffer); switchBuffer(serverBuffer);