variable cleanup, removed unused stuff in print battery

This commit is contained in:
Harald Hope 2017-08-03 22:21:46 -07:00
parent ce71c40c92
commit 584b86f693

9
inxi
View file

@ -12650,9 +12650,8 @@ print_battery_data()
if [[ -n ${A_BATTERY_DATA[@]} ]];then if [[ -n ${A_BATTERY_DATA[@]} ]];then
local battery_data='' battery_string='' local battery_data='' battery_string=''
local present='' chemistry='' cycles='' voltage_min_design='' voltage_now='' local present='' chemistry='' cycles='' voltage_min_design='' voltage_now=''
local power_now='' charge_full_design='' charge_full='' charge_now='' capacity='' local power_now='' capacity='' capacity_level='' model='' company='' serial=''
local capacity_level='' model='' company='' serial='' of_orig='' model='' condition='' local of_orig='' model='' condition='' power=''
local power=''
# echo ${A_BATTERY_DATA[@]} # echo ${A_BATTERY_DATA[@]}
for (( i=0; i< ${#A_BATTERY_DATA[@]}; i++ )) for (( i=0; i< ${#A_BATTERY_DATA[@]}; i++ ))
@ -12664,7 +12663,6 @@ print_battery_data()
model='' model=''
condition='' condition=''
voltage='' voltage=''
name='' name=''
status='' status=''
present='' present=''
@ -12673,9 +12671,6 @@ print_battery_data()
voltage_min_design='' voltage_min_design=''
voltage_now='' voltage_now=''
power_now='' power_now=''
charge_full_design=''
charge_full=''
charge_now=''
capacity='' capacity=''
capacity_level='' capacity_level=''
of_orig='' of_orig=''