Skip to content

Commit f61bbe2

Browse files
committed
Dead code elimination
1 parent 49c1bd7 commit f61bbe2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/rustc/metadata/csearch.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import middle::ty;
88
import option::{some, none};
99
import syntax::diagnostic::span_handler;
1010
import syntax::diagnostic::expect;
11+
import ast_util::dummy_sp;
1112
import common::*;
1213
import std::map::hashmap;
1314
import dvec::{DVec, dvec};
@@ -19,7 +20,6 @@ export get_class_method;
1920
export get_field_type;
2021
export get_type_param_count;
2122
export get_region_param;
22-
export lookup_method_purity;
2323
export get_enum_variants;
2424
export get_impls_for_mod;
2525
export get_trait_methods;
@@ -42,14 +42,6 @@ fn get_type_param_count(cstore: cstore::cstore, def: ast::def_id) -> uint {
4242
return decoder::get_type_param_count(cdata, def.node);
4343
}
4444

45-
fn lookup_method_purity(cstore: cstore::cstore, did: ast::def_id)
46-
-> ast::purity {
47-
let cdata = cstore::get_crate_data(cstore, did.crate).data;
48-
match check decoder::lookup_def(did.crate, cdata, did) {
49-
ast::def_fn(_, p) => p
50-
}
51-
}
52-
5345
/// Iterates over all the paths in the given crate.
5446
fn each_path(cstore: cstore::cstore, cnum: ast::crate_num,
5547
f: fn(decoder::path_entry) -> bool) {

0 commit comments

Comments
 (0)