Skip to content

Commit 8380550

Browse files
committed
---
yaml --- r: 109837 b: refs/heads/master c: 74ddaa2 h: refs/heads/master i: 109835: 3bc25ec v: v3
1 parent bc6f56e commit 8380550

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5a4c8a9c5764bf323f55f94603453dffbba6b1cc
2+
refs/heads/master: 74ddaa27e759c1b00cf1e369d17bec4be5c16aee
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

trunk/src/librustc/back/archive.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,6 @@ impl<'a> Archive<'a> {
8787
Archive { sess: sess, dst: dst }
8888
}
8989

90-
/// Read a file in the archive
91-
pub fn read(&self, file: &str) -> Vec<u8> {
92-
// Apparently if "ar p" is used on windows, it generates a corrupt file
93-
// which has bad headers and LLVM will immediately choke on it
94-
if cfg!(windows) {
95-
let loc = TempDir::new("rsar").unwrap();
96-
let archive = os::make_absolute(&self.dst);
97-
run_ar(self.sess, "x", Some(loc.path()), [&archive,
98-
&Path::new(file)]);
99-
let result: Vec<u8> =
100-
fs::File::open(&loc.path().join(file)).read_to_end()
101-
.unwrap()
102-
.move_iter()
103-
.collect();
104-
result
105-
} else {
106-
run_ar(self.sess,
107-
"p",
108-
None,
109-
[&self.dst, &Path::new(file)]).output.move_iter().collect()
110-
}
111-
}
112-
11390
/// Adds all of the contents of a native library to this archive. This will
11491
/// search in the relevant locations for a library named `name`.
11592
pub fn add_native_library(&mut self, name: &str) -> io::IoResult<()> {

0 commit comments

Comments
 (0)