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