Dead code elimination
This commit is contained in:
parent
49c1bd7e86
commit
f61bbe2709
1 changed files with 1 additions and 9 deletions
|
@ -8,6 +8,7 @@ import middle::ty;
|
|||
import option::{some, none};
|
||||
import syntax::diagnostic::span_handler;
|
||||
import syntax::diagnostic::expect;
|
||||
import ast_util::dummy_sp;
|
||||
import common::*;
|
||||
import std::map::hashmap;
|
||||
import dvec::{DVec, dvec};
|
||||
|
@ -19,7 +20,6 @@ export get_class_method;
|
|||
export get_field_type;
|
||||
export get_type_param_count;
|
||||
export get_region_param;
|
||||
export lookup_method_purity;
|
||||
export get_enum_variants;
|
||||
export get_impls_for_mod;
|
||||
export get_trait_methods;
|
||||
|
@ -42,14 +42,6 @@ fn get_type_param_count(cstore: cstore::cstore, def: ast::def_id) -> uint {
|
|||
return decoder::get_type_param_count(cdata, def.node);
|
||||
}
|
||||
|
||||
fn lookup_method_purity(cstore: cstore::cstore, did: ast::def_id)
|
||||
-> ast::purity {
|
||||
let cdata = cstore::get_crate_data(cstore, did.crate).data;
|
||||
match check decoder::lookup_def(did.crate, cdata, did) {
|
||||
ast::def_fn(_, p) => p
|
||||
}
|
||||
}
|
||||
|
||||
/// Iterates over all the paths in the given crate.
|
||||
fn each_path(cstore: cstore::cstore, cnum: ast::crate_num,
|
||||
f: fn(decoder::path_entry) -> bool) {
|
||||
|
|
Loading…
Reference in a new issue