Skip to content

Commit

Permalink
fix(tree): removed unused isWithInIndex()
Browse files Browse the repository at this point in the history
  • Loading branch information
meling committed Dec 24, 2024
1 parent 8fa760c commit c3f8a5a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/tree/treeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,3 @@ func (t *Tree) heightOf(replicaID hotstuff.ID) int {
func (t *Tree) replicaPosition(id hotstuff.ID) int {
return slices.Index(t.posToIDMapping, id)
}

func (t *Tree) isWithInIndex(position int) bool {
return position < len(t.posToIDMapping)
}

0 comments on commit c3f8a5a

Please sign in to comment.