Skip to content

Commit 41328fe

Browse files
committed
Removed unused AccumulatorLogger
1 parent 07e9766 commit 41328fe

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

legacy/builder/i18n/i18n.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,6 @@ func (s NoopLogger) Name() string {
7777
return "noop"
7878
}
7979

80-
type AccumulatorLogger struct {
81-
Buffer *[]string
82-
}
83-
84-
func (s AccumulatorLogger) Fprintln(w io.Writer, level string, format string, a ...interface{}) {
85-
*s.Buffer = append(*s.Buffer, Format(format, a...))
86-
}
87-
88-
func (s AccumulatorLogger) Println(level string, format string, a ...interface{}) {
89-
s.Fprintln(nil, level, format, a...)
90-
}
91-
92-
func (s AccumulatorLogger) Flush() string {
93-
str := strings.Join(*s.Buffer, "\n")
94-
*s.Buffer = (*s.Buffer)[0:0]
95-
return str
96-
}
97-
98-
func (s AccumulatorLogger) Name() string {
99-
return "accumulator"
100-
}
101-
10280
type HumanTagsLogger struct{}
10381

10482
func (s HumanTagsLogger) Fprintln(w io.Writer, level string, format string, a ...interface{}) {

0 commit comments

Comments
 (0)