From deb18f2c5ac5fc41c953f9eca05aa80fe7beafc8 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Sat, 16 Jan 2021 19:47:40 +0100 Subject: [PATCH] Day 17: Removed dead code --- day17/ex1-v1.bash | 23 ----------------------- day17/ex1.bash | 44 +------------------------------------------- day17/ex2.bash | 2 +- 3 files changed, 2 insertions(+), 67 deletions(-) diff --git a/day17/ex1-v1.bash b/day17/ex1-v1.bash index e1a9576..afab4c6 100755 --- a/day17/ex1-v1.bash +++ b/day17/ex1-v1.bash @@ -9,28 +9,6 @@ declare -A life=() declare -i x=-1 y=-1 z=-1 res=0 declare -i maxx maxy maxz -function print_life() { - local -i x=0 y=0 z=0 foundx foundy - for ((z=0; z&2 echo "$count" } diff --git a/day17/ex1.bash b/day17/ex1.bash index d5f3a8f..bf67211 100755 --- a/day17/ex1.bash +++ b/day17/ex1.bash @@ -7,34 +7,8 @@ CMD=${0##*/} declare -A life=() declare -i x=-1 y=-1 z=-1 res=0 -declare -i max declare -i loops=6 -function print_life() { - local -i x=0 y=0 z=0 foundx foundy - for ((z=0; z