From fbeafd72e51725f251a1bc7be513f3167360d39e Mon Sep 17 00:00:00 2001 From: Piotr Dulikowski Date: Thu, 14 Dec 2023 19:27:58 +0100 Subject: [PATCH] serialize/row: remove SerializedValues::to_old_serialized_values Migration of batches to the new API is complete, so this method is no longer needed and can finally be removed. --- scylla-cql/src/types/serialize/row.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scylla-cql/src/types/serialize/row.rs b/scylla-cql/src/types/serialize/row.rs index 8bf7d965ed..3c68453391 100644 --- a/scylla-cql/src/types/serialize/row.rs +++ b/scylla-cql/src/types/serialize/row.rs @@ -794,14 +794,6 @@ impl SerializedValues { element_count: values_num, }) } - - /// Temporary function, to be removed when we implement new batching API (right now it is needed in frame::request::mod.rs tests) - // TODO: Remove - pub fn to_old_serialized_values(&self) -> LegacySerializedValues { - let mut frame = Vec::new(); - self.write_to_request(&mut frame); - LegacySerializedValues::new_from_frame(&mut frame.as_slice(), false).unwrap() - } } impl Default for SerializedValues {