From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1ACFD1F4C0 for ; Thu, 31 Oct 2019 10:01:24 +0000 (UTC) Received: from localhost ([::1]:47978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQ7Ga-00062W-Kz for e@80x24.org; Thu, 31 Oct 2019 06:01:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37798) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQ7GP-0005pG-H9 for dtas-all@nongnu.org; Thu, 31 Oct 2019 06:01:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQ7GK-0005Q8-KB for dtas-all@nongnu.org; Thu, 31 Oct 2019 06:01:09 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:37348) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQ7GK-0005NY-Ef for dtas-all@nongnu.org; Thu, 31 Oct 2019 06:01:04 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 37A5F1F4C1 for ; Thu, 31 Oct 2019 10:00:55 +0000 (UTC) From: Eric Wong To: dtas-all@nongnu.org Subject: [PATCH 1/3] dtas-console: remove unused variables Date: Thu, 31 Oct 2019 10:00:52 +0000 Message-Id: <20191031100054.13415-2-e@80x24.org> In-Reply-To: <20191031100054.13415-1-e@80x24.org> References: <20191031100054.13415-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.71.152.64 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: duct tape audio suite List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" "ruby -w" will warn on them --- bin/dtas-console | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 @@ def update_tfmt(prec, tsec) events =3D [] interval =3D 1.0 / 10 ** prec_nr =20 -pause =3D nil - def show_events(lineno, screen, events) Curses.setpos(lineno +=3D 1, 0) Curses.clrtoeol @@ -135,7 +133,6 @@ def may_fail(res, events) pfmt =3D cur['format'] elapsed =3D samples =3D 0 fmt =3D total =3D '' - paused =3D false if current =3D cur['current'] infile =3D current['infile'] || current['command'] elapsed =3D DTAS.now - current['spawn_at'] @@ -150,7 +147,6 @@ def may_fail(res, events) end elsif cur['paused'] && infile =3D cur['current_paused'] fmt =3D "[paused] (#{fmt_to_s(pfmt)})" - paused =3D true infile =3D infile['command'] if Hash =3D=3D=3D infile if Array =3D=3D=3D infile infile, elapsed =3D infile @@ -220,10 +216,9 @@ def may_fail(res, events) case event when "pause" if current - pause =3D current['infile'] || current['command'] + current['infile'] || current['command'] end when %r{\Afile } - pause =3D nil end events << "#{Time.now.strftime(tfmt)} #{event}" # something happened, refresh current