@@ -100,10 +100,8 @@ enum Family {
100100 MutStatic , // b
101101 Fn , // f
102102 UnsafeFn , // u
103- PureFn , // p
104103 StaticMethod , // F
105104 UnsafeStaticMethod , // U
106- PureStaticMethod , // P
107105 ForeignFn , // e
108106 Type , // y
109107 ForeignType , // T
@@ -126,10 +124,8 @@ fn item_family(item: ebml::Doc) -> Family {
126124 'b' => MutStatic ,
127125 'f' => Fn ,
128126 'u' => UnsafeFn ,
129- 'p' => PureFn ,
130127 'F' => StaticMethod ,
131128 'U' => UnsafeStaticMethod ,
132- 'P' => PureStaticMethod ,
133129 'e' => ForeignFn ,
134130 'y' => Type ,
135131 'T' => ForeignType ,
@@ -327,7 +323,6 @@ fn item_to_def_like(item: ebml::Doc, did: ast::def_id, cnum: ast::crate_num)
327323 Struct => dl_def ( ast:: def_struct ( did) ) ,
328324 UnsafeFn => dl_def ( ast:: def_fn ( did, ast:: unsafe_fn) ) ,
329325 Fn => dl_def ( ast:: def_fn ( did, ast:: impure_fn) ) ,
330- PureFn => dl_def ( ast:: def_fn ( did, ast:: pure_fn) ) ,
331326 ForeignFn => dl_def ( ast:: def_fn ( did, ast:: extern_fn) ) ,
332327 UnsafeStaticMethod => {
333328 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)
337332 let trait_did_opt = translated_parent_item_opt ( cnum, item) ;
338333 dl_def ( ast:: def_static_method ( did, trait_did_opt, ast:: impure_fn) )
339334 }
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- }
344335 Type | ForeignType => dl_def ( ast:: def_ty ( did) ) ,
345336 Mod => dl_def ( ast:: def_mod ( did) ) ,
346337 ForeignMod => dl_def ( ast:: def_foreign_mod ( did) ) ,
@@ -819,12 +810,11 @@ pub fn get_static_methods_if_impl(intr: @ident_interner,
819810 let impl_method_doc = lookup_item( impl_method_id. node, cdata. data) ;
820811 let family = item_family( impl_method_doc) ;
821812 match family {
822- StaticMethod | UnsafeStaticMethod | PureStaticMethod => {
813+ StaticMethod | UnsafeStaticMethod => {
823814 let purity;
824815 match item_family ( impl_method_doc) {
825816 StaticMethod => purity = ast:: impure_fn,
826817 UnsafeStaticMethod => purity = ast:: unsafe_fn,
827- PureStaticMethod => purity = ast:: pure_fn,
828818 _ => fail ! ( )
829819 }
830820
@@ -932,10 +922,8 @@ fn item_family_to_str(fam: Family) -> ~str {
932922 MutStatic => ~"static mut",
933923 Fn => ~"fn ",
934924 UnsafeFn => ~"unsafe fn",
935- PureFn => ~"pure fn",
936925 StaticMethod => ~"static method",
937926 UnsafeStaticMethod => ~"unsafe static method",
938- PureStaticMethod => ~"pure static method",
939927 ForeignFn => ~"foreign fn",
940928 Type => ~"type ",
941929 ForeignType => ~"foreign type",
0 commit comments