From 8d4b3e6a31637e01a04a371a10510075b0fe407d Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Thu, 10 Dec 2015 20:30:43 -0500 Subject: [PATCH] Remove commented-out code --- src/named_params.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/named_params.rs b/src/named_params.rs index 55ce06f..8df8e96 100644 --- a/src/named_params.rs +++ b/src/named_params.rs @@ -1,4 +1,3 @@ -// use std::collections::HashMap; use std::ffi::CString; use libc::c_int; @@ -62,19 +61,6 @@ impl SqliteConnection { } impl<'conn> SqliteStatement<'conn> { - // pub fn parameter_names(&self) -> HashMap { - // 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. /// /// # Failure