Skip to content

Commit

Permalink
Remove unused source
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Dec 22, 2019
1 parent ea7f31d commit c3aed0f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@ func defaultLineNumberFormat(num int) string {
return fmt.Sprintf("%2d | ", num)
}

func (p *Printer) lineTexts(tk *token.Token, prop *Property) []string {
texts := []string{}
for idx, src := range strings.Split(tk.Origin, "\n") {
header := ""
if p.LineNumber {
header = p.LineNumberFormat(tk.Position.Line + idx)
}
lineText := prop.Prefix + src + prop.Suffix
texts = append(texts, fmt.Sprintf("%s%s", header, lineText))
}
return texts
}

func (p *Printer) property(tk *token.Token) *Property {
prop := &Property{}
switch tk.PreviousType() {
Expand Down

0 comments on commit c3aed0f

Please sign in to comment.