Skip to content

Commit

Permalink
format: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ebati committed Feb 18, 2022
1 parent bef63db commit 9685193
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions format/format.go
Expand Up @@ -281,15 +281,6 @@ func (f *fumpter) printLength(node ast.Node) int {
return int(count) + (f.blockLevel * 8)
}

func (f *fumpter) tabbedColumn(p token.Pos) int {
col := f.Position(p).Column

// Like in printLength, add an approximation of the indentation level.
// Since any existing tabs were already counted as one column, multiply
// the level by 7.
return col + (f.blockLevel * 7)
}

func (f *fumpter) lineEnd(line int) token.Pos {
if line < 1 {
panic("illegal line number")
Expand Down

0 comments on commit 9685193

Please sign in to comment.