summaryrefslogtreecommitdiffhomepage
path: root/types/key/node.go
diff options
context:
space:
mode:
authorDavid Anderson <danderson@tailscale.com>2021-10-29 14:48:36 -0700
committerDavid Anderson <danderson@tailscale.com>2021-10-29 14:48:36 -0700
commit743293d473ad10bdb108f9a9f60963c1da1803d4 (patch)
tree24611db1e1c542d2a96a4a69880d8d486023ba60 /types/key/node.go
parent2486d7cb9b781a2ffaa234554a03ea1ef91fc1a9 (diff)
downloadtailscale-danderson/nodekey-cleanup.tar.xz
tailscale-danderson/nodekey-cleanup.zip
types/key: remove node key AsPublic/AsPrivate compat shims.danderson/nodekey-cleanup
Updates #3206. Signed-off-by: David Anderson <danderson@tailscale.com>
Diffstat (limited to 'types/key/node.go')
-rw-r--r--types/key/node.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/types/key/node.go b/types/key/node.go
index c618939eb..c83aba15a 100644
--- a/types/key/node.go
+++ b/types/key/node.go
@@ -138,15 +138,6 @@ func (k NodePrivate) UntypedHexString() string {
return hex.EncodeToString(k.k[:])
}
-// AsPrivate returns k converted to a Private.
-//
-// Deprecated: exists only as a compatibility bridge while Private
-// gets removed from the codebase. Do not introduce new uses that
-// aren't related to #3206.
-func (k NodePrivate) AsPrivate() Private {
- return k.k
-}
-
// NodePublic is the public portion of a NodePrivate.
type NodePublic struct {
k [32]byte
@@ -316,12 +307,3 @@ func (k NodePublic) WireGuardGoString() string {
b[second+3] = b64((k.k[31] << 2) & 63)
return string(b)
}
-
-// AsPublic returns k converted to a Public.
-//
-// Deprecated: exists only as a compatibility bridge while Public
-// gets removed from the codebase. Do not introduce new uses that
-// aren't related to #3206.
-func (k NodePublic) AsPublic() Public {
- return k.k
-}