Skip to content

Commit

Permalink
fix unused: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maed223 committed Oct 31, 2024
1 parent 01f5712 commit 34e4a52
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions label_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 19,10 @@ type labelIter struct {
i int
}

func (l *labelIter) reset() {
l.curStart = 0
l.curEnd = 0
l.i = 0
}

func (l *labelIter) done() bool {
return l.curStart >= len(l.orig)
}

func (l *labelIter) result() string {
if l.slice != nil {
return strings.Join(l.slice, ".")
}
return l.orig
}

func (l *labelIter) label() string {
if l.slice != nil {
return l.slice[l.i]
Expand All @@ -62,10 49,3 @@ func (l *labelIter) next() {
}
}
}

func (l *labelIter) set(s string) {
if l.slice == nil {
l.slice = strings.Split(l.orig, ".")
}
l.slice[l.i] = s
}

0 comments on commit 34e4a52

Please sign in to comment.