From 72f81db37b1fd22ecc476c6b2c06daebda8ed7fd Mon Sep 17 00:00:00 2001 From: Petar Maymounkov Date: Tue, 18 Aug 2020 11:40:24 -0700 Subject: [PATCH] rebase fixes --- core/commands/keystore.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/commands/keystore.go b/core/commands/keystore.go index f8409bed9b74..139d8ec7122c 100644 --- a/core/commands/keystore.go +++ b/core/commands/keystore.go @@ -536,18 +536,6 @@ func doRotate(out io.Writer, repoRoot string, oldKey string, algorithm string, n return nil } -func (enc keyEncoder) FormatID(id peer.ID) string { - if enc.baseEnc == nil { - //nolint deprecated - return peer.IDB58Encode(id) - } - if s, err := peer.ToCid(id).StringOfBase(enc.baseEnc.Encoding()); err != nil { - panic(err) - } else { - return s - } -} - func keyOutputListEncoders() cmds.EncoderFunc { return cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, list *KeyOutputList) error { withID, _ := req.Options["l"].(bool)