Skip to content

Commit 7fb712e

Browse files
committed
Warning police.
1 parent f7088ed commit 7fb712e

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/librustpkg/tests.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use extra::getopts::groups::getopts;
2626
use std::run::ProcessOutput;
2727
use installed_packages::list_installed_packages;
2828
use crate_id::{CrateId};
29-
use version::{ExactRevision, NoVersion, Version, Tagged};
29+
use version::{ExactRevision, NoVersion, Version};
3030
use path_util::{target_executable_in_workspace, target_test_in_workspace,
3131
target_bench_in_workspace, make_dir_rwx,
3232
library_in_workspace, installed_library_in_workspace,
@@ -35,7 +35,6 @@ use path_util::{target_executable_in_workspace, target_test_in_workspace,
3535
chmod_read_only, platform_library_name};
3636
use rustc::back::link::get_cc_prog;
3737
use rustc::metadata::filesearch::{rust_path, libdir, rustlibdir};
38-
use rustc::driver::session;
3938
use rustc::driver::driver::{build_session, build_session_options, host_triple, optgroups};
4039
use syntax::diagnostic;
4140
use target::*;
@@ -76,14 +75,6 @@ fn git_repo_pkg() -> CrateId {
7675
}
7776
}
7877

79-
fn git_repo_pkg_with_tag(a_tag: ~str) -> CrateId {
80-
CrateId {
81-
path: Path::new("mockgithub.com/catamorphism/test-pkg"),
82-
short_name: ~"test-pkg",
83-
version: Tagged(a_tag)
84-
}
85-
}
86-
8778
fn writeFile(file_path: &Path, contents: &str) {
8879
let mut out = File::create(file_path);
8980
out.write(contents.as_bytes());
@@ -487,12 +478,6 @@ fn lib_output_file_name(workspace: &Path, short_name: &str) -> Path {
487478
&NoVersion).expect("lib_output_file_name")
488479
}
489480

490-
fn output_file_name(workspace: &Path, short_name: ~str) -> Path {
491-
target_build_dir(workspace).join(short_name.as_slice())
492-
.join(format!("{}{}", short_name,
493-
os::consts::EXE_SUFFIX))
494-
}
495-
496481
#[cfg(target_os = "linux")]
497482
fn touch_source_file(workspace: &Path, crateid: &CrateId) {
498483
use conditions::bad_path::cond;

0 commit comments

Comments
 (0)