]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused variable
authorJordi Boggiano <j.boggiano@seld.be>
Fri, 28 Jun 2013 17:29:50 +0000 (19:29 +0200)
committerDaniel Micay <danielmicay@gmail.com>
Sat, 29 Jun 2013 05:00:13 +0000 (01:00 -0400)
src/librustpkg/path_util.rs

index c0425b4d2606443241f089e044981b709cf3da88..f0a3f24c307bddfafae66da1b7f51e636cddf7d0 100644 (file)
@@ -40,7 +40,6 @@ fn push_if_exists(vec: &mut ~[Path], p: &Path) {
 /// DIR/.rust for any DIR that's the current working directory
 /// or an ancestor of it
 pub fn rust_path() -> ~[Path] {
-    let env_path: ~str = os::getenv("RUST_PATH").get_or_default(~"");
     let mut env_rust_path: ~[Path] = match os::getenv("RUST_PATH") {
         Some(env_path) => {
             let env_path_components: ~[&str] =