From edc40e37184defcdae7c196e80ca6d068a3f808e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 29 Oct 2019 07:48:16 +0000 Subject: dtas-console: remove unused variables "ruby -w" will warn on them --- bin/dtas-console | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/dtas-console b/bin/dtas-console index 00b5cd8..877c9c4 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -53,8 +53,6 @@ tfmt = update_tfmt(prec_step[prec_nr], tsec) events = [] interval = 1.0 / 10 ** prec_nr -pause = nil - def show_events(lineno, screen, events) Curses.setpos(lineno += 1, 0) Curses.clrtoeol @@ -135,7 +133,6 @@ begin pfmt = cur['format'] elapsed = samples = 0 fmt = total = '' - paused = false if current = cur['current'] infile = current['infile'] || current['command'] elapsed = DTAS.now - current['spawn_at'] @@ -150,7 +147,6 @@ begin end elsif cur['paused'] && infile = cur['current_paused'] fmt = "[paused] (#{fmt_to_s(pfmt)})" - paused = true infile = infile['command'] if Hash === infile if Array === infile infile, elapsed = infile @@ -220,10 +216,9 @@ begin case event when "pause" if current - pause = current['infile'] || current['command'] + current['infile'] || current['command'] end when %r{\Afile } - pause = nil end events << "#{Time.now.strftime(tfmt)} #{event}" # something happened, refresh current -- cgit v1.2.3-24-ge0c7