removed unused functions
This commit is contained in:
@@ -42,10 +42,6 @@ fn default_tasks_per_session() -> usize {
|
||||
0 // 0 = rotate between economic/corporate
|
||||
}
|
||||
|
||||
fn default_protonvpn_extension_id() -> String {
|
||||
"ghmbeldphafepmbegfdlkpapadhbakde".to_string()
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
@@ -124,19 +120,6 @@ impl Config {
|
||||
})
|
||||
}
|
||||
|
||||
/// Get the list of VPN servers configured for rotation
|
||||
pub fn get_vpn_servers(&self) -> Vec<String> {
|
||||
if self.vpn_servers.is_empty() {
|
||||
Vec::new()
|
||||
} else {
|
||||
self.vpn_servers
|
||||
.split(',')
|
||||
.map(|s| s.trim().to_string())
|
||||
.filter(|s| !s.is_empty())
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn target_end_date(&self) -> String {
|
||||
let now = chrono::Local::now().naive_local().date();
|
||||
let future = now + chrono::Duration::days(30 * self.economic_lookahead_months as i64);
|
||||
|
||||
Reference in New Issue
Block a user