From d689cd0a9aaff0be4c0ec1d0d51c69347c43ad52 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 27 Dec 2024 22:16:36 +0000 Subject: [PATCH] remove duplicate parseLines() in templates --- .scaffold/aoc/{{ .Project }}/internal/one/solve.go | 14 -------------- .scaffold/aoc/{{ .Project }}/internal/two/solve.go | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/.scaffold/aoc/{{ .Project }}/internal/one/solve.go b/.scaffold/aoc/{{ .Project }}/internal/one/solve.go index 9950929..7119978 100644 --- a/.scaffold/aoc/{{ .Project }}/internal/one/solve.go +++ b/.scaffold/aoc/{{ .Project }}/internal/one/solve.go @@ -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 -} diff --git a/.scaffold/aoc/{{ .Project }}/internal/two/solve.go b/.scaffold/aoc/{{ .Project }}/internal/two/solve.go index b6d5012..402064f 100644 --- a/.scaffold/aoc/{{ .Project }}/internal/two/solve.go +++ b/.scaffold/aoc/{{ .Project }}/internal/two/solve.go @@ -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 -}