Remove Table associated type in VTabCursor trait

This commit is contained in:
gwenn 2018-07-22 10:02:59 +02:00
parent b82a155429
commit ce9d325ba0
5 changed files with 0 additions and 9 deletions

View File

@ -128,8 +128,6 @@ impl ArrayTabCursor {
}
}
impl VTabCursor for ArrayTabCursor {
type Table = 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));

View File

@ -283,8 +283,6 @@ impl CSVTabCursor {
}
impl VTabCursor for CSVTabCursor {
type Table = CSVTab;
// Only a full table scan is supported. So `filter` simply rewinds to
// the beginning.
fn filter(&mut self, _idx_num: c_int, _idx_str: Option<&str>, _args: &Values) -> Result<()> {

View File

@ -397,7 +397,6 @@ impl<'a> OrderBy<'a> {
///
/// (See [SQLite doc](https://sqlite.org/c3ref/vtab_cursor.html))
pub trait VTabCursor: Sized {
type Table: VTab;
/// Begin a search of a virtual table.
/// (See [SQLite doc](https://sqlite.org/vtab.html#the_xfilter_method))
fn filter(&mut self, idx_num: c_int, idx_str: Option<&str>, args: &Values) -> Result<()>;

View File

@ -184,8 +184,6 @@ impl SeriesTabCursor {
}
}
impl VTabCursor for SeriesTabCursor {
type Table = SeriesTab;
fn filter(&mut self, idx_num: c_int, _idx_str: Option<&str>, args: &Values) -> Result<()> {
let idx_num = QueryPlanFlags::from_bits_truncate(idx_num);
let mut i = 0;

View File

@ -56,8 +56,6 @@ fn test_dummy_module() {
}
impl VTabCursor for DummyTabCursor {
type Table = DummyTab;
fn filter(
&mut self,
_idx_num: c_int,