Commit c51d7cbd authored by Geoff Simmons's avatar Geoff Simmons

Get rid of some unused JS variables in govarnishstat

parent e4bb7f00
...@@ -95,15 +95,12 @@ table.hitrate { ...@@ -95,15 +95,12 @@ table.hitrate {
<script type="text/javascript"> <script type="text/javascript">
var addr = "ws://" + location.hostname + ":" + location.port var addr = "ws://" + location.hostname + ":" + location.port
var tbl
var tbody var tbody
var show0 = false var show0 = false
var show0_checkbox var show0_checkbox
var formatting = true var formatting = true
var verbosity = "INFO" var verbosity = "INFO"
var verbose_select var verbose_select
var diag
var debug
function format_num(cell, val) { function format_num(cell, val) {
if (cell.classList.contains("float")) { if (cell.classList.contains("float")) {
...@@ -325,15 +322,13 @@ function toggleShow0() { ...@@ -325,15 +322,13 @@ function toggleShow0() {
} }
window.onload = function() { window.onload = function() {
tbl = document.getElementById("statsTbl") var tbl = document.getElementById("statsTbl")
tbody = tbl.getElementsByTagName('tbody')[0]; tbody = tbl.getElementsByTagName('tbody')[0];
getD9ns() getD9ns()
getStats() getStats()
getHitrate() getHitrate()
verbose_select = document.getElementById("verbosity") verbose_select = document.getElementById("verbosity")
verbose_select.addEventListener("change", setVerbosity); verbose_select.addEventListener("change", setVerbosity);
diag = document.getElementsByClassName("DIAG")
debug = document.getElementsByClassName("DEBUG")
show0_checkbox = document.getElementById("show0") show0_checkbox = document.getElementById("show0")
show0_checkbox.onclick = toggleShow0 show0_checkbox.onclick = toggleShow0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment