From: Josh Bleecher Snyder Date: Tue, 19 Jan 2021 21:41:47 +0000 (-0800) Subject: device: remove unused trie test code X-Git-Tag: 0.0.20210212~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a2ecb581b5940ab82814fe836cb599705da9b8a;p=thirdparty%2Fwireguard-go.git device: remove unused trie test code Signed-off-by: Josh Bleecher Snyder --- 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{