Skip to content

Commit

Permalink
Remove unused field from sourceImpl (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones authored Jun 15, 2023
1 parent 41fa51e commit 9812c42
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ type sourceImpl struct {
runes.Buffer
description string
lineOffsets []int32
idOffsets map[int64]int32
}

var _ runes.Buffer = &sourceImpl{}
Expand Down Expand Up @@ -92,7 +91,6 @@ func NewStringSource(contents string, description string) Source {
Buffer: runes.NewBuffer(contents),
description: description,
lineOffsets: offsets,
idOffsets: map[int64]int32{},
}
}

Expand All @@ -102,7 +100,6 @@ func NewInfoSource(info *exprpb.SourceInfo) Source {
Buffer: runes.NewBuffer(""),
description: info.GetLocation(),
lineOffsets: info.GetLineOffsets(),
idOffsets: info.GetPositions(),
}
}

Expand Down

0 comments on commit 9812c42

Please sign in to comment.