remove duplicate parseLines() in templates

This commit is contained in:
onyx-and-iris 2024-12-27 22:16:36 +00:00
parent 88f082080d
commit d689cd0a9a
2 changed files with 0 additions and 28 deletions

View File

@ -1,9 +1,7 @@
package one
import (
"bufio"
"bytes"
"io"
)
func Solve(buf []byte) (int, error) {
@ -15,15 +13,3 @@ func Solve(buf []byte) (int, error) {
return 0, nil
}
func parseLines(r io.Reader) error {
scanner := bufio.NewScanner(r)
for scanner.Scan() {
}
if err := scanner.Err(); err != nil {
return err
}
return nil
}

View File

@ -1,9 +1,7 @@
package two
import (
"bufio"
"bytes"
"io"
)
func Solve(buf []byte) (int, error) {
@ -15,15 +13,3 @@ func Solve(buf []byte) (int, error) {
return 0, nil
}
func parseLines(r io.Reader) error {
scanner := bufio.NewScanner(r)
for scanner.Scan() {
}
if err := scanner.Err(); err != nil {
return err
}
return nil
}