Skip to content

Commit afc829b

Browse files
bonigarciasandeepsuryaprasad
authored andcommitted
[rust] Remove check for old metadata file
1 parent 04fddba commit afc829b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

rust/src/metadata.rs

-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use std::fs::File;
2323
use std::path::{Path, PathBuf};
2424
use std::time::{SystemTime, UNIX_EPOCH};
2525

26-
const METADATA_FILE_OLD: &str = "selenium-manager.json";
2726
const METADATA_FILE: &str = "se-metadata.json";
2827

2928
#[derive(Serialize, Deserialize)]
@@ -61,10 +60,6 @@ pub struct Metadata {
6160
}
6261

6362
fn get_metadata_path(cache_path: PathBuf) -> PathBuf {
64-
let old_metadata = cache_path.join(METADATA_FILE_OLD);
65-
if old_metadata.exists() {
66-
fs::remove_file(old_metadata).unwrap_or_default();
67-
}
6863
cache_path.join(METADATA_FILE)
6964
}
7065

0 commit comments

Comments
 (0)