Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Nov 12, 2021
1 parent 5ea50bd commit 428f8ea
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions openpgp/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,26 +529,6 @@ func addUserID(e *Entity, packets *packet.Reader, pkt *packet.UserId) error {
return nil
}

func shouldReplaceUserIDSig(existingSig, potentialNewSig *packet.Signature) bool {
if potentialNewSig == nil {
return false
}

if existingSig == nil {
return true
}

if existingSig.SigType == packet.SigTypeSubkeyRevocation {
return false // never override a revocation signature
}

if potentialNewSig.SigType == packet.SigTypeSubkeyRevocation {
return true // always override with a revocation signature
}

return potentialNewSig.CreationTime.After(existingSig.CreationTime)
}

func addSubkey(e *Entity, packets *packet.Reader, pub *packet.PublicKey, priv *packet.PrivateKey) error {
var subKey Subkey
subKey.PublicKey = pub
Expand Down

0 comments on commit 428f8ea

Please sign in to comment.