From d2b1d23ba62d92b66c1ec2c550085d72397be8fc Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 6 Feb 2017 11:58:00 +1300 Subject: [PATCH] client/js: remove dead code (1) --- client/dcwebui.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/dcwebui.js b/client/dcwebui.js index a39f57b..ae85a30 100644 --- a/client/dcwebui.js +++ b/client/dcwebui.js @@ -73,10 +73,6 @@ var sanitise = function(s) { return linkify(hesc(s)); }; -var toggle = function($el) { - $el.style.display = ($el.style.display === "block") ? "none" : "block"; -}; - var textContent = function($el) { if ($el.textContent) return $el.textContent; if ($el.innerText) return $el.innerText; @@ -189,8 +185,6 @@ var write = function(tab) { return this.raw(''+s+''); }, 'time': function() { - var d = new Date(); - return this.raw('['+ date_format(new Date(), timestamp_formats[timestamp_format_index])+"] "); }, 'system': function(s) {