Skip to content

Commit 16128e9

Browse files
committed
Remove unused Paging wrapper
1 parent e5c09c8 commit 16128e9

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/result.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::sync::Arc;
2-
31
use crate::{
42
errors::err_to_napi,
53
types::{
@@ -40,15 +38,6 @@ pub struct RowWrapper {
4038
inner: Vec<Option<CqlValue>>,
4139
}
4240

43-
/// Represents a single row of result from paged query
44-
#[napi]
45-
pub struct PagedRowWrapper {
46-
// Values of the row
47-
inner: Vec<Option<CqlValue>>,
48-
// Column names. Kept as an Arc to avoid some cloning
49-
names: Arc<Vec<String>>,
50-
}
51-
5241
/// Wrapper for a single CQL value
5342
///
5443
/// When returned from NAPI-RS, returns either just a inner value or tuple of elements: ``(cqlType, value)``
@@ -192,25 +181,6 @@ impl From<Row> for RowWrapper {
192181
}
193182
}
194183

195-
#[napi]
196-
impl PagedRowWrapper {
197-
#[napi]
198-
pub fn get_columns_names(&self) -> Vec<String> {
199-
(*self.names).clone()
200-
}
201-
202-
/// Get the CQL value wrappers for each column in the given row
203-
#[napi]
204-
pub fn get_columns(&self) -> napi::Result<Vec<Option<CqlValueWrapper>>> {
205-
let s: Vec<Option<CqlValueWrapper>> = self
206-
.inner
207-
.iter()
208-
.map(|f| f.clone().map(|f| CqlValueWrapper { inner: f }))
209-
.collect();
210-
Ok(s)
211-
}
212-
}
213-
214184
/// Converts value into tuple of elements:
215185
/// ``(typ, value)``
216186
/// for a given CQL Value.

0 commit comments

Comments
 (0)