summaryrefslogtreecommitdiff
path: root/ci-lib-core/src/dbctx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ci-lib-core/src/dbctx.rs')
-rw-r--r--ci-lib-core/src/dbctx.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/ci-lib-core/src/dbctx.rs b/ci-lib-core/src/dbctx.rs
index eec5e72..399f67f 100644
--- a/ci-lib-core/src/dbctx.rs
+++ b/ci-lib-core/src/dbctx.rs
@@ -1,11 +1,8 @@
use std::sync::Mutex;
-// use futures_util::StreamExt;
use rusqlite::{params, Connection, OptionalExtension};
use std::time::{SystemTime, UNIX_EPOCH};
-// use tokio::io::{AsyncReadExt, AsyncWriteExt};
use std::path::Path;
use std::path::PathBuf;
-use std::ops::Deref;
use crate::sql;
@@ -34,10 +31,6 @@ impl DbCtx {
}
}
- fn conn<'a>(&'a self) -> impl Deref<Target = Connection> + 'a {
- self.conn.lock().unwrap()
- }
-
pub fn create_tables(&self) -> Result<(), ()> {
let conn = self.conn.lock().unwrap();
conn.execute(sql::CREATE_ARTIFACTS_TABLE, params![]).unwrap();