diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-12-26 17:25:56 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2023-01-06 13:24:53 +0100 |
commit | 547e7a0cc51a5df9590c9e4eff710949c96b4f52 (patch) | |
tree | 13b9aec3aa6696a65dec49d3f4fe60b20647bed3 | |
parent | be4a139c5cb7b4839ee2ea3101191aceae1c5278 (diff) |
openpgp: Remove unused field.
- `CertParser::saw_error` is set, but never read. Remove it.
-rw-r--r-- | openpgp/src/cert/parser/mod.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/openpgp/src/cert/parser/mod.rs b/openpgp/src/cert/parser/mod.rs index ac96c1a4..d43b3b06 100644 --- a/openpgp/src/cert/parser/mod.rs +++ b/openpgp/src/cert/parser/mod.rs @@ -491,7 +491,6 @@ pub struct CertParser<'a> { source: Option<Box<dyn Iterator<Item=Result<Packet>> + 'a + Send + Sync>>, packets: Vec<Packet>, queued_error: Option<anyhow::Error>, - saw_error: bool, filter: Vec<Box<dyn Send + Sync + Fn(&Cert, bool) -> bool + 'a>>, } assert_send_and_sync!(CertParser<'_>); @@ -992,7 +991,6 @@ impl<'a> Iterator for CertParser<'a> { } Some(Err(err)) => { t!("Error getting packet: {}", err); - self.saw_error = true; if ! self.packets.is_empty() { // Returned any queued certificate first. |