From adedcae9758fc9691480f4890a375bfb5bcafa58 Mon Sep 17 00:00:00 2001 From: evan-forbes Date: Wed, 17 Aug 2022 02:31:42 -0500 Subject: [PATCH] linter --- pkg/inclusion/paths.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/inclusion/paths.go b/pkg/inclusion/paths.go index 30f8e29183..42a4ada09d 100644 --- a/pkg/inclusion/paths.go +++ b/pkg/inclusion/paths.go @@ -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-- { @@ -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