From 8c5c461caa4af5dc457adb6768ebaa1ca1637428 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Fri, 6 Feb 2026 00:40:28 +0800 Subject: [PATCH] chore: remove dead code --- double-ratchets/src/state.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/double-ratchets/src/state.rs b/double-ratchets/src/state.rs index b7fe74c..48ad359 100644 --- a/double-ratchets/src/state.rs +++ b/double-ratchets/src/state.rs @@ -291,35 +291,6 @@ impl RatchetState { } } - /// Reconstructs a RatchetState from its component parts. - /// - /// This is used for restoring state from storage. - #[allow(clippy::too_many_arguments)] - pub fn from_parts( - root_key: RootKey, - sending_chain: Option, - receiving_chain: Option, - dh_self: InstallationKeyPair, - dh_remote: Option, - msg_send: u32, - msg_recv: u32, - prev_chain_len: u32, - skipped_keys: HashMap<(PublicKey, u32), MessageKey>, - ) -> Self { - Self { - root_key, - sending_chain, - receiving_chain, - dh_self, - dh_remote, - msg_send, - msg_recv, - prev_chain_len, - skipped_keys, - _domain: PhantomData, - } - } - /// Performs a receiving-side DH ratchet when a new remote DH public key is observed. /// /// # Arguments