From 9270d432eaa435764a3e4a73a111f2907d53d496 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 26 Oct 2020 19:49:27 -0700 Subject: [PATCH] Remove unused code. --- pki/pki.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pki/pki.go b/pki/pki.go index 59c49ea7..c95ca985 100644 --- a/pki/pki.go +++ b/pki/pki.go @@ -117,18 +117,6 @@ func GetProvisioners(caURL, rootFile string) (provisioner.List, error) { } } -func generateDefaultKey() (crypto.Signer, error) { - priv, err := keyutil.GenerateDefaultKey() - if err != nil { - return nil, err - } - signer, ok := priv.(crypto.Signer) - if !ok { - return nil, errors.Errorf("type %T is not a cyrpto.Signer", priv) - } - return signer, nil -} - // GetProvisionerKey returns the encrypted provisioner key with the for the // given kid. func GetProvisionerKey(caURL, rootFile, kid string) (string, error) {