about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2014-01-17 14:44:40 -0700
committerJack Moffitt <jack@metajack.im>2014-01-17 14:45:07 -0700
commit7fb712e269bcb73c5986c90831a43bcd50bd5340 (patch)
tree422310c73917bc22674e2dbcc4a8564e5fbad408
parentf7088edc03d96872fb2b83d211969c1fe5c271d8 (diff)
downloadrust-7fb712e269bcb73c5986c90831a43bcd50bd5340.tar.gz
rust-7fb712e269bcb73c5986c90831a43bcd50bd5340.zip
Warning police.
-rw-r--r--src/librustpkg/tests.rs17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs
index bdae3c09be0..0e78e907de0 100644
--- a/src/librustpkg/tests.rs
+++ b/src/librustpkg/tests.rs
@@ -26,7 +26,7 @@ use extra::getopts::groups::getopts;
 use std::run::ProcessOutput;
 use installed_packages::list_installed_packages;
 use crate_id::{CrateId};
-use version::{ExactRevision, NoVersion, Version, Tagged};
+use version::{ExactRevision, NoVersion, Version};
 use path_util::{target_executable_in_workspace, target_test_in_workspace,
                target_bench_in_workspace, make_dir_rwx,
                library_in_workspace, installed_library_in_workspace,
@@ -35,7 +35,6 @@ use path_util::{target_executable_in_workspace, target_test_in_workspace,
                chmod_read_only, platform_library_name};
 use rustc::back::link::get_cc_prog;
 use rustc::metadata::filesearch::{rust_path, libdir, rustlibdir};
-use rustc::driver::session;
 use rustc::driver::driver::{build_session, build_session_options, host_triple, optgroups};
 use syntax::diagnostic;
 use target::*;
@@ -76,14 +75,6 @@ fn git_repo_pkg() -> CrateId {
     }
 }
 
-fn git_repo_pkg_with_tag(a_tag: ~str) -> CrateId {
-    CrateId {
-        path: Path::new("mockgithub.com/catamorphism/test-pkg"),
-        short_name: ~"test-pkg",
-        version: Tagged(a_tag)
-    }
-}
-
 fn writeFile(file_path: &Path, contents: &str) {
     let mut out = File::create(file_path);
     out.write(contents.as_bytes());
@@ -487,12 +478,6 @@ fn lib_output_file_name(workspace: &Path, short_name: &str) -> Path {
                          &NoVersion).expect("lib_output_file_name")
 }
 
-fn output_file_name(workspace: &Path, short_name: ~str) -> Path {
-    target_build_dir(workspace).join(short_name.as_slice())
-                               .join(format!("{}{}", short_name,
-                                             os::consts::EXE_SUFFIX))
-}
-
 #[cfg(target_os = "linux")]
 fn touch_source_file(workspace: &Path, crateid: &CrateId) {
     use conditions::bad_path::cond;