From 52e5d784fda12adf02f35a45e737d4f390a84431 Mon Sep 17 00:00:00 2001 From: Phil Hord Date: Mon, 11 Apr 2016 19:28:59 -0400 Subject: [PATCH] Remove useless lines from Configtool I don't know what these lines were intended for, but the 'idx' variable is not used anywhere else, so setting it is pointless. --- configtool/thermistortablefile.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/configtool/thermistortablefile.py b/configtool/thermistortablefile.py index 5f10c983b..20ac7a103 100644 --- a/configtool/thermistortablefile.py +++ b/configtool/thermistortablefile.py @@ -100,10 +100,6 @@ def BetaTable(ofp, params, names, settings, finalTable): hiadc = thrm.setting(0)[0] N = int(settings.numTemps) step = int(hiadc / (N - 1)) - idx = range(1, int(hiadc), step) - - while len(idx) > N: - del idx[0] for i in range(1, int(hiadc), step): t = int(thrm.temp(i)) @@ -146,10 +142,6 @@ def SteinhartHartTable(ofp, params, names, settings, finalTable): hiadc = thrm.setting(0)[0] N = int(settings.numTemps) step = int(hiadc / (N - 1)) - idx = range(1, int(hiadc), step) - - while len(idx) > N: - del idx[0] for i in range(1, int(hiadc), step): t = int(thrm.temp(i))