Remove vtab() function from VTabCursor trait

This commit is contained in:
gwenn
2018-07-14 19:10:28 +02:00
parent e2df03f474
commit 0c371834aa
5 changed files with 5 additions and 15 deletions

View File

@@ -126,9 +126,6 @@ impl ArrayTabCursor {
impl VTabCursor for ArrayTabCursor {
type Table = ArrayTab;
fn vtab(&self) -> &ArrayTab {
unsafe { &*(self.base.pVtab as *const ArrayTab) }
}
fn filter(&mut self, idx_num: c_int, _idx_str: Option<&str>, args: &Values) -> Result<()> {
if idx_num > 0 {
self.ptr = try!(args.get_array(0));