summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-06-02 10:19:09 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-06-02 10:41:00 +0200
commit8885a5b565ee28b1dda385ea1ed0ad66ede6d5e4 (patch)
treebe0278c5b5383cf9c498986af28aa0c0d5cb8725
parentfcdb3fc844e74bb561e0eec82e7abfb7289a2ce0 (diff)
openpgp: Remove unnecessary forwarder
- `KeyBundle::has_secret` is redundant: `KeyBundle` derefs to `&Key`, which derefs to a `&Key4`, which provides `has_secret` with identical semantics as `KeyBundle::has_secret`. - Remove it.
-rw-r--r--openpgp/src/packet/key.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/openpgp/src/packet/key.rs b/openpgp/src/packet/key.rs
index 0d9ea96d..55a9ff60 100644
--- a/openpgp/src/packet/key.rs
+++ b/openpgp/src/packet/key.rs
@@ -386,13 +386,6 @@ pub(crate) type UnspecifiedSecondary = Key<UnspecifiedParts, SubordinateRole>;
pub(crate) type UnspecifiedKey = Key<UnspecifiedParts, UnspecifiedRole>;
-impl<K: key::KeyParts, R: key::KeyRole> KeyBundle<K, R>
-{
- fn has_secret(&self) -> bool {
- self.key().secret.is_some()
- }
-}
-
/// Holds a public key, public subkey, private key or private subkey packet.
///
/// See [Section 5.5 of RFC 4880] for details.