diff options
| author | Kiet Tran <ktt3ja@gmail.com> | 2013-12-08 02:55:28 -0500 | 
|---|---|---|
| committer | Kiet Tran <ktt3ja@gmail.com> | 2013-12-08 02:55:28 -0500 | 
| commit | 1755408d1a58684b6c9bce11aeceb18a1ec2d66e (patch) | |
| tree | 9d781272021fe4ead382ffc8f87c048f194e25b5 /src/librustpkg/lib.rs | |
| parent | c06dd0e0afb4b78ab4e482a7488adcf1c865bd19 (diff) | |
| download | rust-1755408d1a58684b6c9bce11aeceb18a1ec2d66e.tar.gz rust-1755408d1a58684b6c9bce11aeceb18a1ec2d66e.zip | |
Remove dead codes
Diffstat (limited to 'src/librustpkg/lib.rs')
| -rw-r--r-- | src/librustpkg/lib.rs | 18 | 
1 files changed, 2 insertions, 16 deletions
| diff --git a/src/librustpkg/lib.rs b/src/librustpkg/lib.rs index 8c696b2b844..7801742bc91 100644 --- a/src/librustpkg/lib.rs +++ b/src/librustpkg/lib.rs @@ -63,10 +63,9 @@ mod crate; pub mod exit_codes; mod installed_packages; mod messages; -mod package_id; -mod package_source; +pub mod package_id; +pub mod package_source; mod path_util; -mod search; mod sha1; mod source_control; mod target; @@ -189,10 +188,6 @@ impl<'self> PkgScript<'self> { (cfgs, output.status) } } - - fn hash(&self) -> ~str { - self.id.hash() - } } pub trait CtxMethods { @@ -924,12 +919,3 @@ pub fn main_args(args: &[~str]) -> int { if result.is_err() { return COPY_FAILED_CODE; } return 0; } - -fn declare_package_script_dependency(prep: &mut workcache::Prep, pkg_src: &PkgSrc) { - match pkg_src.package_script_option() { - // FIXME (#9639): This needs to handle non-utf8 paths - Some(ref p) => prep.declare_input("file", p.as_str().unwrap(), - workcache_support::digest_file_with_date(p)), - None => () - } -} | 
