Remove unnecessary column_has_valid_sqlite_type impls

This commit is contained in:
John Gallagher 2016-05-15 15:32:59 -04:00
parent 79376a4ca9
commit 350dc59bb9
3 changed files with 0 additions and 24 deletions

View File

@ -54,10 +54,6 @@ impl FromSql for NaiveDate {
_ => Err(Error::InvalidColumnType), _ => Err(Error::InvalidColumnType),
} }
} }
unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool {
true // to avoid double check
}
} }
/// ISO 8601 time without timezone => "HH:MM:SS.SSS" /// ISO 8601 time without timezone => "HH:MM:SS.SSS"
@ -158,10 +154,6 @@ impl FromSql for NaiveDateTime {
_ => Err(Error::InvalidColumnType), _ => Err(Error::InvalidColumnType),
} }
} }
unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool {
true // to avoid double check
}
} }
/// ISO 8601 date and time with time zone => "YYYY-MM-DD HH:MM:SS.SSS[+-]HH:MM" /// ISO 8601 date and time with time zone => "YYYY-MM-DD HH:MM:SS.SSS[+-]HH:MM"
@ -202,10 +194,6 @@ impl FromSql for DateTime<UTC> {
_ => Err(Error::InvalidColumnType), _ => Err(Error::InvalidColumnType),
} }
} }
unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool {
true // to avoid double check
}
} }
@ -247,10 +235,6 @@ impl FromSql for DateTime<Local> {
_ => Err(Error::InvalidColumnType), _ => Err(Error::InvalidColumnType),
} }
} }
unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool {
true // to avoid double check
}
} }
// struct UnixTime(NaiveDateTime); // struct UnixTime(NaiveDateTime);

View File

@ -298,10 +298,6 @@ impl FromSql for Value {
_ => Err(Error::InvalidColumnType), _ => Err(Error::InvalidColumnType),
} }
} }
unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool {
true
}
} }
#[cfg(test)] #[cfg(test)]

View File

@ -42,10 +42,6 @@ impl FromSql for time::Timespec {
_ => Err(Error::InvalidColumnType), _ => Err(Error::InvalidColumnType),
} }
} }
unsafe fn column_has_valid_sqlite_type(_: *mut sqlite3_stmt, _: c_int) -> bool {
true // to avoid double check
}
} }
#[cfg(test)] #[cfg(test)]