]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
device: remove unused trie test code
authorJosh Bleecher Snyder <josh@tailscale.com>
Tue, 19 Jan 2021 21:41:47 +0000 (13:41 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Jan 2021 19:03:40 +0000 (20:03 +0100)
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/allowedips_test.go

index 27028a60f3bd49862f34dfb52836cd47c8d691ad..695a1122e2e927a49ee281a68e20f3122495cbc0 100644 (file)
@@ -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{