From 7efe284746e4ebc4d1622360ee0d7f6349c34c72 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Thu, 13 Jun 2024 18:39:46 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A8=20Remove=20dead=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/malware/tools.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/malware/tools.rs b/src/malware/tools.rs index 23d37c8..8f07b80 100644 --- a/src/malware/tools.rs +++ b/src/malware/tools.rs @@ -6,8 +6,6 @@ pub const EXIST_ALL_GOOD: i32 = 0; pub const EXIST_CLI_ERROR: i32 = 10; pub const EXIST_TEST_ERROR: i32 = 11; -use std::collections::HashSet; - use regex_generate::{Generator, DEFAULT_MAX_REPEAT}; use windows::Win32::UI::Shell::IsUserAnAdmin; @@ -38,12 +36,3 @@ pub fn regex_to_string(name: &String) -> String { pub fn process_is_admin() -> bool { return unsafe { IsUserAnAdmin().into() }; } - -pub fn pretty_print_hashset(title: String, data: HashSet) { - println!("{} :", title); - println!("----------------"); - for name in data { - println!("👉 {}", name); - } - println!("----------------"); -}