diff --git a/scylla-cql/src/frame/response/result.rs b/scylla-cql/src/frame/response/result.rs index f78a97aef..20c09c69d 100644 --- a/scylla-cql/src/frame/response/result.rs +++ b/scylla-cql/src/frame/response/result.rs @@ -709,16 +709,6 @@ impl<'frame> RawRowsWithDeserializedMetadata<'frame> { } } -#[derive(Debug)] -pub struct Rows { - pub metadata: ResultMetadataHolder<'static>, - pub paging_state_response: PagingStateResponse, - pub rows_count: usize, - pub rows: Vec, - /// Original size of the serialized rows. - pub serialized_size: usize, -} - #[derive(Debug)] pub enum Result { Void, @@ -1114,29 +1104,6 @@ impl RawRows { |cached| ResultMetadataHolder::SharedCached(Arc::clone(cached)), deser_col_specs_owned, ); - - pub fn into_legacy_rows( - self, - paging_state_response: PagingStateResponse, - ) -> StdResult { - let raw_rows_with_deserialized_metadata = self.deserialize_owned_metadata()?; - - let rows_size = raw_rows_with_deserialized_metadata.rows_size(); - let rows_count = raw_rows_with_deserialized_metadata.rows_count(); - let rows = raw_rows_with_deserialized_metadata - .rows_iter::()? - .collect::>()?; - - let metadata = raw_rows_with_deserialized_metadata.into_metadata(); - - Ok(Rows { - metadata, - paging_state_response, - rows_count, - rows, - serialized_size: rows_size, - }) - } } fn deser_prepared_metadata(