Skip to content

Commit 265452d

Browse files
committed
Remove unused 'file' function.
1 parent 0aad658 commit 265452d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/cargo/util/paths.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::env;
22
use std::ffi::{OsStr, OsString};
33
use std::fs::File;
44
use std::fs::OpenOptions;
5-
use std::io;
65
use std::io::prelude::*;
76
use std::path::{Path, PathBuf, Component};
87

@@ -68,10 +67,6 @@ pub fn without_prefix<'a>(a: &'a Path, b: &'a Path) -> Option<&'a Path> {
6867
}
6968
}
7069

71-
pub fn file(p: &Path, contents: &[u8]) -> io::Result<()> {
72-
try!(File::create(p)).write_all(contents)
73-
}
74-
7570
pub fn read(path: &Path) -> CargoResult<String> {
7671
(|| -> CargoResult<_> {
7772
let mut ret = String::new();

0 commit comments

Comments
 (0)