Skip to content

Commit fcf019c

Browse files
committed
native: Remove dead code
1 parent 7e3e6ec commit fcf019c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

native/src/main.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,7 @@ fn resolve(wd: &str, specifier: &str, containing_filename: Option<String>) -> Re
151151
Ok(ret?.path().to_str().unwrap().to_owned())
152152
}
153153

154-
pub fn dir_exists(path: &str) -> io::Result<bool> {
155-
match fs::metadata(path) {
156-
Ok(meta) => Ok(meta.is_dir() || meta.is_symlink()),
157-
Err(error) if error.kind() == io::ErrorKind::NotFound => Ok(false),
158-
Err(error) => Err(error),
159-
}
160-
}
161-
162-
pub fn file_exists(path: &str) -> io::Result<bool> {
154+
fn file_exists(path: &str) -> io::Result<bool> {
163155
match fs::metadata(path) {
164156
Ok(meta) => Ok(meta.is_file()),
165157
Err(error) if error.kind() == io::ErrorKind::NotFound => Ok(false),

0 commit comments

Comments
 (0)