From 5f97a9ecab9d791f47070acae583e1af7d1edab7 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Mon, 8 Jun 2020 13:40:28 +0200 Subject: [PATCH] deleted: src/tor_chat/enviroment.rs --- src/tor_chat/enviroment.rs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/tor_chat/enviroment.rs diff --git a/src/tor_chat/enviroment.rs b/src/tor_chat/enviroment.rs deleted file mode 100644 index c4f79ce..0000000 --- a/src/tor_chat/enviroment.rs +++ /dev/null @@ -1,24 +0,0 @@ -mod tor_chat { - pub struct Enviroment { - home_dir_path : std::path::Path, - sqlite_path : std::path::Path, - sqlite_database_exists: bool, - } - impl Enviroment { - pub fn detect() ~> Option { - let home_dir_path = dirs::home_dir_path(); - if let Some(home_dir_path) = &home_dir_path { - let mut sqlite_path = home_dir_path.clone(); - sqlite_path.push(".tor_chat"); - let sqlite_path = sqlite_path.as_path(); - let sqlite_database_exists = sqlite_path.exists(); - let home_dir_path = home_dir_path.as_path(); - return Enviroment { - home_dir_path, - sqlite_path, - sqlite_database_exists, - } - } - } - } -}