Remove unused function (deleteGpgKey)

Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
This commit is contained in:
Mustafa Gezen 2022-08-17 01:55:56 +02:00
parent 663d0bc99f
commit 1ffd01550a
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -65,14 +65,6 @@ func gpgCmdEnv(cmd *exec.Cmd) *exec.Cmd {
return cmd
}
func (s *Server) deleteGpgKey(keyId string) error {
out, err := logCmdRun(gpgCmdEnv(exec.Command("gpg", "--batch", "--yes", "--delete-secret-and-public-key", keyId)))
if err != nil {
s.log.Errorf("failed to delete gpg key: %s", out.String())
}
return err
}
func (s *Server) importGpgKey(armoredKey string) error {
cmd := gpgCmdEnv(exec.Command("gpg", "--batch", "--yes", "--import", "-"))
cmd.Stdin = strings.NewReader(armoredKey)