Removed dead code associated with winget
mellobacon committed
Oct 4, 2022 at 16:03 UTC
db8d035535a05511a430f3b8f59b7a6db3419f7b
2 files changed
-16
src-tauri/Cargo.toml
-1
@@ -18,7 +18,6 @@ tauri-build = { version = "1.0.3", features = [] }
18
serde_json = "1.0"
19
serde = { version = "1.0", features = ["derive"] }
20
tauri = { version = "1.0.6", features = ["api-all"] }
21
-winreg = "0.10"
21
notify = "4.0.0"
22
23
[dev-dependencies]
src-tauri/src/directory.rs
-15
@@ -1,22 +1,7 @@
1
-extern crate winreg;
2
-use winreg::RegKey;
3
-use winreg::enums::*;
4
-
1
use notify::{Watcher, RecursiveMode, watcher};
2
use std::sync::mpsc::channel;
3
use std::time::Duration;
4
9
-pub fn get_file_extensions(input: &str) -> &str {
10
- println!("File extensions, registered in system:");
11
- for i in RegKey::predef(HKEY_CLASSES_ROOT)
12
- .enum_keys().map(|x| x.unwrap())
13
- .filter(|x| x.starts_with("."))
14
- {
15
- println!("{}", i);
16
- }
17
- return input;
18
-}
19
-
5
pub fn watch_directory(directory: &str) -> String {
6
// Create a channel to receive the events.
7
let (sender, receiver) = channel();