mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-10 00:51:07 +00:00
types/wgkey: delete, no longer used.
Updates #3206 Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user