@@ -100,10 +100,8 @@ enum Family {
100
100
MutStatic , // b
101
101
Fn , // f
102
102
UnsafeFn , // u
103
- PureFn , // p
104
103
StaticMethod , // F
105
104
UnsafeStaticMethod , // U
106
- PureStaticMethod , // P
107
105
ForeignFn , // e
108
106
Type , // y
109
107
ForeignType , // T
@@ -126,10 +124,8 @@ fn item_family(item: ebml::Doc) -> Family {
126
124
'b' => MutStatic ,
127
125
'f' => Fn ,
128
126
'u' => UnsafeFn ,
129
- 'p' => PureFn ,
130
127
'F' => StaticMethod ,
131
128
'U' => UnsafeStaticMethod ,
132
- 'P' => PureStaticMethod ,
133
129
'e' => ForeignFn ,
134
130
'y' => Type ,
135
131
'T' => ForeignType ,
@@ -327,7 +323,6 @@ fn item_to_def_like(item: ebml::Doc, did: ast::def_id, cnum: ast::crate_num)
327
323
Struct => dl_def ( ast:: def_struct ( did) ) ,
328
324
UnsafeFn => dl_def ( ast:: def_fn ( did, ast:: unsafe_fn) ) ,
329
325
Fn => dl_def ( ast:: def_fn ( did, ast:: impure_fn) ) ,
330
- PureFn => dl_def ( ast:: def_fn ( did, ast:: pure_fn) ) ,
331
326
ForeignFn => dl_def ( ast:: def_fn ( did, ast:: extern_fn) ) ,
332
327
UnsafeStaticMethod => {
333
328
let trait_did_opt = translated_parent_item_opt ( cnum, item) ;
@@ -337,10 +332,6 @@ fn item_to_def_like(item: ebml::Doc, did: ast::def_id, cnum: ast::crate_num)
337
332
let trait_did_opt = translated_parent_item_opt ( cnum, item) ;
338
333
dl_def ( ast:: def_static_method ( did, trait_did_opt, ast:: impure_fn) )
339
334
}
340
- PureStaticMethod => {
341
- let trait_did_opt = translated_parent_item_opt ( cnum, item) ;
342
- dl_def ( ast:: def_static_method ( did, trait_did_opt, ast:: pure_fn) )
343
- }
344
335
Type | ForeignType => dl_def ( ast:: def_ty ( did) ) ,
345
336
Mod => dl_def ( ast:: def_mod ( did) ) ,
346
337
ForeignMod => dl_def ( ast:: def_foreign_mod ( did) ) ,
@@ -819,12 +810,11 @@ pub fn get_static_methods_if_impl(intr: @ident_interner,
819
810
let impl_method_doc = lookup_item( impl_method_id. node, cdata. data) ;
820
811
let family = item_family( impl_method_doc) ;
821
812
match family {
822
- StaticMethod | UnsafeStaticMethod | PureStaticMethod => {
813
+ StaticMethod | UnsafeStaticMethod => {
823
814
let purity;
824
815
match item_family ( impl_method_doc) {
825
816
StaticMethod => purity = ast:: impure_fn,
826
817
UnsafeStaticMethod => purity = ast:: unsafe_fn,
827
- PureStaticMethod => purity = ast:: pure_fn,
828
818
_ => fail ! ( )
829
819
}
830
820
@@ -932,10 +922,8 @@ fn item_family_to_str(fam: Family) -> ~str {
932
922
MutStatic => ~"static mut",
933
923
Fn => ~"fn ",
934
924
UnsafeFn => ~"unsafe fn",
935
- PureFn => ~"pure fn",
936
925
StaticMethod => ~"static method",
937
926
UnsafeStaticMethod => ~"unsafe static method",
938
- PureStaticMethod => ~"pure static method",
939
927
ForeignFn => ~"foreign fn",
940
928
Type => ~"type ",
941
929
ForeignType => ~"foreign type",
0 commit comments