summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-07-23 15:35:20 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-07-23 15:35:20 +0200
commit459461f5037c09e7b14b43ca3c6460def5e2eebb (patch)
tree131131a70547c28a81bcc199430fbd0108c24934
parent8242b5ffb29f3c20ee33221fd3a07e96a087cb27 (diff)
Remove dead code
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/database_connection.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/database_connection.rs b/src/database_connection.rs
deleted file mode 100644
index 21124cc..0000000
--- a/src/database_connection.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-#[derive(Debug)]
-pub struct DatabaseConnection(notmuch::Database);
-
-impl DatabaseConnection {
-
- pub fn readonly(p: &PathBuf) -> Result<DatabaseConnection> {
- .map(DatabaseConnection)
- }
-
- pub fn for_thread<'d, 'q, F, T>(&self, thread_id: &str, f: F) -> Result<T>
- where F: FnOnce<Threads<'d, 'q>> -> Result<T>,
- T: Sized
- {
- let query = format!("thread:{}", thread_id);
-
- self.0
- .create_query(query)?
- .search_threads()
- .and_then(func)
- }
-
-}