aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-30 03:51:12 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-30 03:51:12 +0100
commit48aa7dafb468a849317cc37b64b45b2132aca5ec (patch)
treeaf2933d070f863984c81160bb446d08c98c3aada /cmd
parent32e326107df67006aa5d5a729b4f5301d84747d2 (diff)
Remove unused code
Diffstat (limited to 'cmd')
-rw-r--r--cmd/acme/main.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/cmd/acme/main.go b/cmd/acme/main.go
index 2213446..0a979ec 100644
--- a/cmd/acme/main.go
+++ b/cmd/acme/main.go
@@ -2,7 +2,6 @@ package main
import (
"crypto/rsa"
- "errors"
"flag"
"log"
"os"
@@ -36,13 +35,6 @@ func chkKey(k PrivKey) (*rsa.PrivateKey, error) {
}
}
-func chkCert(k Cert) error {
- if !k.HasCert() {
- return errors.New("cert missing")
- }
- return nil
-}
-
func saveCert(k Cert, crt []byte) error {
cert := k.CertPath()
if err := os.MkdirAll(path.Dir(cert), 0755); err != nil {