types/wgkey: delete, no longer used.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-28 14:53:10 -07:00
parent 19189d7018
commit 15376f975b
5 changed files with 1 additions and 459 deletions

View File

@@ -15,7 +15,6 @@ import (
"golang.org/x/crypto/curve25519"
"golang.org/x/crypto/nacl/box"
"tailscale.com/types/structs"
"tailscale.com/types/wgkey"
)
const (
@@ -148,15 +147,6 @@ func (k NodePrivate) AsPrivate() Private {
return k.k
}
// AsWGPrivate returns k converted to a wgkey.Private.
//
// Deprecated: exists only as a compatibility bridge while
// wgkey.Private gets removed from the codebase. Do not introduce new
// uses that aren't related to #3206.
func (k NodePrivate) AsWGPrivate() wgkey.Private {
return k.k
}
// NodePublic is the public portion of a NodePrivate.
type NodePublic struct {
k [32]byte
@@ -335,12 +325,3 @@ func (k NodePublic) WireGuardGoString() string {
func (k NodePublic) AsPublic() Public {
return k.k
}
// AsWGKey returns k converted to a wgkey.Key.
//
// Deprecated: exists only as a compatibility bridge while
// wgkey.Key gets removed from the codebase. Do not introduce new
// uses that aren't related to #3206.
func (k NodePublic) AsWGKey() wgkey.Key {
return k.k
}