@@ -8,6 +8,7 @@ import middle::ty;
8
8
import option:: { some, none} ;
9
9
import syntax:: diagnostic:: span_handler;
10
10
import syntax:: diagnostic:: expect;
11
+ import ast_util:: dummy_sp;
11
12
import common:: * ;
12
13
import std:: map:: hashmap;
13
14
import dvec:: { DVec , dvec} ;
@@ -19,7 +20,6 @@ export get_class_method;
19
20
export get_field_type;
20
21
export get_type_param_count;
21
22
export get_region_param;
22
- export lookup_method_purity;
23
23
export get_enum_variants;
24
24
export get_impls_for_mod;
25
25
export get_trait_methods;
@@ -42,14 +42,6 @@ fn get_type_param_count(cstore: cstore::cstore, def: ast::def_id) -> uint {
42
42
return decoder:: get_type_param_count ( cdata, def. node ) ;
43
43
}
44
44
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
-
53
45
/// Iterates over all the paths in the given crate.
54
46
fn each_path ( cstore : cstore:: cstore , cnum : ast:: crate_num ,
55
47
f : fn ( decoder:: path_entry ) -> bool ) {
0 commit comments