Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Aug 17, 2022
1 parent 41991de commit adedcae
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/inclusion/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package inclusion

// genSubTreeRootPath calculates the path to a given subtree root of a node, given the
// depth and position of the node. note: the root of the tree is depth 0.
// nolint
func genSubTreeRootPath(depth int, pos uint) []bool {
path := make([]bool, depth)
for i := depth; i >= 0; i-- {
Expand All @@ -14,14 +15,6 @@ func genSubTreeRootPath(depth int, pos uint) []bool {
return path
}

func twoToThePowerOf(depth int) int {
cursor := 1
for i := 0; i < depth; i++ {
cursor = cursor * 2
}
return cursor
}

// coord identifies a tree node using the depth and position
type coord struct {
// depth is the typical depth of a tree, 0 being the root
Expand Down

0 comments on commit adedcae

Please sign in to comment.