mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Remove commented-out code
This commit is contained in:
parent
21528452d7
commit
8d4b3e6a31
@ -1,4 +1,3 @@
|
|||||||
// use std::collections::HashMap;
|
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
use libc::c_int;
|
use libc::c_int;
|
||||||
|
|
||||||
@ -62,19 +61,6 @@ impl SqliteConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'conn> SqliteStatement<'conn> {
|
impl<'conn> SqliteStatement<'conn> {
|
||||||
// pub fn parameter_names(&self) -> HashMap<String, i32> {
|
|
||||||
// let n = unsafe { ffi::sqlite3_bind_parameter_count(self.stmt) };
|
|
||||||
// let mut index_by_name = HashMap::with_capacity(n as usize);
|
|
||||||
// for i in 1..n+1 {
|
|
||||||
// let c_name = unsafe { ffi::sqlite3_bind_parameter_name(self.stmt, i) };
|
|
||||||
// if !c_name.is_null() {
|
|
||||||
// let c_slice = unsafe { CStr::from_ptr(c_name).to_bytes() };
|
|
||||||
// index_by_name.insert(str::from_utf8(c_slice).unwrap().to_string(), n);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// index_by_name
|
|
||||||
// }
|
|
||||||
|
|
||||||
/// Return the index of an SQL parameter given its name.
|
/// Return the index of an SQL parameter given its name.
|
||||||
///
|
///
|
||||||
/// # Failure
|
/// # Failure
|
||||||
|
Loading…
Reference in New Issue
Block a user