From 0fcc88873bcca5503a4040c37f8581b7d5f2a494 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 29 Oct 2021 16:35:32 -0700 Subject: [PATCH] tailcfg: remove NodeKeyFromNodePublic. Updates #3206 Signed-off-by: David Anderson --- tailcfg/tailcfg.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index e825bf974..2bffe27e7 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -84,15 +84,6 @@ func (u StableNodeID) IsZero() bool { // a NodeKey, use NodePublic.AsNodeKey. type NodeKey = key.NodeKey -// NodeKeyFromNodePublic returns k converted to a NodeKey. -// -// Deprecated: exists only as a compatibility bridge while NodeKey -// gets removed from the codebase. Do not introduce new uses that -// aren't related to #3206. -func NodeKeyFromNodePublic(k key.NodePublic) NodeKey { - return k.AsNodeKey() -} - // DiscoKey is the curve25519 public key for path discovery key. // It's never written to disk or reused between network start-ups. type DiscoKey [32]byte