🎨 remove unused checks

This commit is contained in:
Alphyron 2019-12-04 22:37:10 +01:00
parent c7ce85ed63
commit 10b836e46a

View File

@ -84,11 +84,6 @@ func HasOneDouble(i int) bool {
iStr := strconv.Itoa(i) iStr := strconv.Itoa(i)
for len(iStr) >= 2 { for len(iStr) >= 2 {
if iStr[0] != iStr[1] {
iStr = iStr[1:]
continue
}
i := 1 i := 1
for len(iStr) > i && iStr[0] == iStr[i] { for len(iStr) > i && iStr[0] == iStr[i] {
i++ i++
@ -97,11 +92,6 @@ func HasOneDouble(i int) bool {
if i == 2 { if i == 2 {
return true return true
} }
if len(iStr) <= i {
return false
}
iStr = iStr[i:] iStr = iStr[i:]
} }
return false return false