diff options
Diffstat (limited to 'openpgp/src/types/mod.rs')
-rw-r--r-- | openpgp/src/types/mod.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs index 412b9f08..43acb69a 100644 --- a/openpgp/src/types/mod.rs +++ b/openpgp/src/types/mod.rs @@ -71,18 +71,6 @@ mod timestamp; pub use timestamp::{Timestamp, Duration}; pub(crate) use timestamp::normalize_systemtime; -/// Removes padding bytes from bitfields. -/// -/// Returns the size of the original bitfield, i.e. the number of -/// bytes the output has to be padded to when serialized. -pub(crate) fn bitfield_remove_padding(b: &mut Vec<u8>) -> usize { - let pad_to = b.len(); - while b.last() == Some(&0) { - b.pop(); - } - pad_to -} - /// The OpenPGP public key algorithms as defined in [Section 9.1 of /// RFC 4880], and [Section 5 of RFC 6637]. /// |