@@ -26,7 +26,7 @@ use extra::getopts::groups::getopts;
26
26
use std:: run:: ProcessOutput ;
27
27
use installed_packages:: list_installed_packages;
28
28
use crate_id:: { CrateId } ;
29
- use version:: { ExactRevision , NoVersion , Version , Tagged } ;
29
+ use version:: { ExactRevision , NoVersion , Version } ;
30
30
use path_util:: { target_executable_in_workspace, target_test_in_workspace,
31
31
target_bench_in_workspace, make_dir_rwx,
32
32
library_in_workspace, installed_library_in_workspace,
@@ -35,7 +35,6 @@ use path_util::{target_executable_in_workspace, target_test_in_workspace,
35
35
chmod_read_only, platform_library_name} ;
36
36
use rustc:: back:: link:: get_cc_prog;
37
37
use rustc:: metadata:: filesearch:: { rust_path, libdir, rustlibdir} ;
38
- use rustc:: driver:: session;
39
38
use rustc:: driver:: driver:: { build_session, build_session_options, host_triple, optgroups} ;
40
39
use syntax:: diagnostic;
41
40
use target:: * ;
@@ -76,14 +75,6 @@ fn git_repo_pkg() -> CrateId {
76
75
}
77
76
}
78
77
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
-
87
78
fn writeFile ( file_path : & Path , contents : & str ) {
88
79
let mut out = File :: create ( file_path) ;
89
80
out. write ( contents. as_bytes ( ) ) ;
@@ -487,12 +478,6 @@ fn lib_output_file_name(workspace: &Path, short_name: &str) -> Path {
487
478
& NoVersion ) . expect ( "lib_output_file_name" )
488
479
}
489
480
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
-
496
481
#[ cfg( target_os = "linux" ) ]
497
482
fn touch_source_file ( workspace : & Path , crateid : & CrateId ) {
498
483
use conditions:: bad_path:: cond;
0 commit comments