Skip to content

Commit

Permalink
chore: remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Noah committed Jul 15, 2024
1 parent 69cfd1d commit 5eaf3ec
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ fn add_to_startup() {
PCWSTR::from_raw(to_utf16(value).as_ptr()),
0,
REG_SZ,
// Some(path.to_string_lossy().bytes().chain(std::iter::once(0)).collect::<Vec<u8>>().as_slice()),
Some(&v16_to_v8(&to_utf16(&path.to_string_lossy()))),
)
};
Expand All @@ -286,9 +285,6 @@ fn add_to_startup() {
if result.is_err() {
eprintln!("Failed to close registry key");
}

// RegCreateKey(HKEY_CURRENT_USER, PWSTR::from(subkey), &mut key).unwrap();
// RegSetValueEx(key, PWSTR::NULL, 0, 1, path.to_string_lossy().as_ptr() as _, (path.to_string_lossy().len() * 2) as _).unwrap();
}

#[cfg(target_os = "linux")]
Expand Down

0 comments on commit 5eaf3ec

Please sign in to comment.