Skip to content

Commit 8ab727a

Browse files
committed
Remove unused variant of download utility that didn't accept a path parameter
1 parent d9f7432 commit 8ab727a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/download/src/lib.rs

-15
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@ pub fn download(url: &Url,
4747
Err("no working backends".into())
4848
}
4949

50-
pub fn download_to_path(url: &Url,
51-
path: &Path,
52-
callback: Option<&Fn(Event) -> Result<()>>)
53-
-> Result<()> {
54-
for &backend in BACKENDS {
55-
match download_to_path_with_backend(backend, url, path, callback) {
56-
Err(Error(ErrorKind::BackendUnavailable(_), _)) => (),
57-
Err(e) => return Err(e),
58-
Ok(()) => return Ok(()),
59-
}
60-
}
61-
62-
Err("no working backends".into())
63-
}
64-
6550
pub fn download_with_backend(backend: Backend,
6651
url: &Url,
6752
callback: &Fn(Event) -> Result<()>)

0 commit comments

Comments
 (0)