summaryrefslogtreecommitdiffhomepage
path: root/device
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-01-19 13:41:47 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-20 20:03:40 +0100
commit6a2ecb581b5940ab82814fe836cb599705da9b8a (patch)
tree1c952e29f862cbaeeac37d225d4a543bacec1751 /device
parentf07177c762bfc4aab7d44a4b32432b8575007bec (diff)
device: remove unused trie test code
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device')
-rw-r--r--device/allowedips_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/device/allowedips_test.go b/device/allowedips_test.go
index 27028a6..695a112 100644
--- a/device/allowedips_test.go
+++ b/device/allowedips_test.go
@@ -20,26 +20,6 @@ type testPairCommonBits struct {
match uint
}
-type testPairTrieInsert struct {
- key []byte
- cidr uint
- peer *Peer
-}
-
-type testPairTrieLookup struct {
- key []byte
- peer *Peer
-}
-
-func printTrie(t *testing.T, p *trieEntry) {
- if p == nil {
- return
- }
- t.Log(p)
- printTrie(t, p.child[0])
- printTrie(t, p.child[1])
-}
-
func TestCommonBits(t *testing.T) {
tests := []testPairCommonBits{