From 8f3f494e222aa978e792cf2d45656cef476d41c3 Mon Sep 17 00:00:00 2001 From: PastaClaw Date: Sat, 21 Feb 2026 12:54:10 -0600 Subject: [PATCH] clippy(sdk): remove unused Sdk::parse_proof and Sdk::parse_proof_with_metadata These methods became dead code when their last external caller in fetch_many.rs was removed. Only parse_proof_with_metadata_and_proof is used by the fetch/fetch_many paths now. --- packages/rs-sdk/src/sdk.rs | 44 -------------------------------------- 1 file changed, 44 deletions(-) diff --git a/packages/rs-sdk/src/sdk.rs b/packages/rs-sdk/src/sdk.rs index f8e5eefa84f..bdfd001c2eb 100644 --- a/packages/rs-sdk/src/sdk.rs +++ b/packages/rs-sdk/src/sdk.rs @@ -240,27 +240,6 @@ impl Sdk { .expect("mock should be created") } - /// Retrieve object `O` from proof contained in `request` (of type `R`) and `response`. - /// - /// This method is used to retrieve objects from proofs returned by Dash Platform. - /// - /// ## Generic Parameters - /// - /// - `R`: Type of the request that was used to fetch the proof. - /// - `O`: Type of the object to be retrieved from the proof. - pub(crate) async fn parse_proof + MockResponse>( - &self, - request: O::Request, - response: O::Response, - ) -> Result, Error> - where - O::Request: Mockable + TransportRequest, - { - self.parse_proof_with_metadata(request, response) - .await - .map(|result| result.0) - } - /// Return freshness criteria (height tolerance and time tolerance) for given request method. /// /// Note that if self.metadata_height_tolerance or self.metadata_time_tolerance_ms is None, @@ -279,29 +258,6 @@ impl Sdk { } } - /// Retrieve object `O` from proof contained in `request` (of type `R`) and `response`. - /// - /// This method is used to retrieve objects from proofs returned by Dash Platform. - /// - /// ## Generic Parameters - /// - /// - `R`: Type of the request that was used to fetch the proof. - /// - `O`: Type of the object to be retrieved from the proof. - pub(crate) async fn parse_proof_with_metadata + MockResponse>( - &self, - request: O::Request, - response: O::Response, - ) -> Result<(Option, ResponseMetadata), Error> - where - O::Request: Mockable + TransportRequest, - { - let (object, metadata, _proof) = self - .parse_proof_with_metadata_and_proof(request, response) - .await?; - - Ok((object, metadata)) - } - /// Verify response metadata against the current state of the SDK. pub fn verify_response_metadata( &self,