summaryrefslogtreecommitdiff
path: root/melib/src/sqlite3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/sqlite3.rs')
-rw-r--r--melib/src/sqlite3.rs16
1 files changed, 1 insertions, 15 deletions
diff --git a/melib/src/sqlite3.rs b/melib/src/sqlite3.rs
index 898454f6..17a7b67f 100644
--- a/melib/src/sqlite3.rs
+++ b/melib/src/sqlite3.rs
@@ -19,7 +19,7 @@
* along with meli. If not, see <http://www.gnu.org/licenses/>.
*/
-use crate::{error::*, logging::log, Envelope, EnvelopeHash};
+use crate::{error::*, logging::log, Envelope};
use rusqlite::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput};
pub use rusqlite::{self, params, Connection};
use std::path::PathBuf;
@@ -159,17 +159,3 @@ impl FromSql for Envelope {
.map_err(|e| FromSqlError::Other(Box::new(e)))
}
}
-
-impl ToSql for EnvelopeHash {
- fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
- Ok(ToSqlOutput::from(self.0 as i64))
- }
-}
-
-impl FromSql for EnvelopeHash {
- fn column_result(value: rusqlite::types::ValueRef) -> FromSqlResult<Self> {
- let b: i64 = FromSql::column_result(value)?;
-
- Ok(EnvelopeHash(b as u64))
- }
-}