1
0
Fork 0

remove old code

main
Andrew Coleman 2017-12-09 01:51:38 -05:00
parent bbb8298cca
commit 70260d9f79
1 changed files with 0 additions and 2 deletions

View File

@ -5,8 +5,6 @@ calc_group_score(String)
-> calc_group_score(re:split(String, ""), 0, false, 0, false, 0). -> calc_group_score(re:split(String, ""), 0, false, 0, false, 0).
calc_group_score([<<>>], Score, _LastCharWasEx, _Depth, _FoundGarbage, CharCount) calc_group_score([<<>>], Score, _LastCharWasEx, _Depth, _FoundGarbage, CharCount)
-> {Score, 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) calc_group_score([_Head|Tail], Score, LastCharWasEx, Depth, FoundGarbage, CharCount)
when LastCharWasEx == true, FoundGarbage == true -> calc_group_score(Tail, Score, false, Depth, true, 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) calc_group_score([Head|Tail], Score, _LastCharWasEx, Depth, FoundGarbage, CharCount)