From 6a2ecb581b5940ab82814fe836cb599705da9b8a Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 19 Jan 2021 13:41:47 -0800 Subject: [PATCH] device: remove unused trie test code Signed-off-by: Josh Bleecher Snyder --- device/allowedips_test.go | 20 -------------------- 1 file changed, 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{