From 70260d9f795b403986e5c9c7cb01f81ab4f79abe Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Sat, 9 Dec 2017 01:51:38 -0500 Subject: [PATCH] remove old code --- day9/day9.erl | 2 -- 1 file changed, 2 deletions(-) diff --git a/day9/day9.erl b/day9/day9.erl index d9bc40a..7486d5c 100644 --- a/day9/day9.erl +++ b/day9/day9.erl @@ -5,8 +5,6 @@ calc_group_score(String) -> calc_group_score(re:split(String, ""), 0, false, 0, false, 0). calc_group_score([<<>>], Score, _LastCharWasEx, _Depth, _FoundGarbage, CharCount) -> {Score, CharCount}; -%calc_group_score(List, Score, LastCharWasEx, Depth, FoundGarbage, CharCount) -% when Score < 0 -> calc_group_score(List, 0, LastCharWasEx, Depth, FoundGarbage, CharCount); calc_group_score([_Head|Tail], Score, LastCharWasEx, Depth, FoundGarbage, CharCount) when LastCharWasEx == true, FoundGarbage == true -> calc_group_score(Tail, Score, false, Depth, true, CharCount); calc_group_score([Head|Tail], Score, _LastCharWasEx, Depth, FoundGarbage, CharCount)