diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-07-23 15:35:20 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-07-23 15:35:20 +0200 |
commit | 459461f5037c09e7b14b43ca3c6460def5e2eebb (patch) | |
tree | 131131a70547c28a81bcc199430fbd0108c24934 | |
parent | 8242b5ffb29f3c20ee33221fd3a07e96a087cb27 (diff) |
Remove dead code
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/database_connection.rs | 22 |
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) - } - -} |