@@ -100,10 +100,8 @@ enum Family {
100100 Const , // c
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
@@ -125,10 +123,8 @@ fn item_family(item: ebml::Doc) -> Family {
125123 'c' => Const ,
126124 'f' => Fn ,
127125 'u' => UnsafeFn ,
128- 'p' => PureFn ,
129126 'F' => StaticMethod ,
130127 'U' => UnsafeStaticMethod ,
131- 'P' => PureStaticMethod ,
132128 'e' => ForeignFn ,
133129 'y' => Type ,
134130 'T' => ForeignType ,
@@ -325,7 +321,6 @@ fn item_to_def_like(item: ebml::Doc, did: ast::def_id, cnum: ast::crate_num)
325321 Struct => dl_def ( ast:: def_struct ( did) ) ,
326322 UnsafeFn => dl_def ( ast:: def_fn ( did, ast:: unsafe_fn) ) ,
327323 Fn => dl_def ( ast:: def_fn ( did, ast:: impure_fn) ) ,
328- PureFn => dl_def ( ast:: def_fn ( did, ast:: pure_fn) ) ,
329324 ForeignFn => dl_def ( ast:: def_fn ( did, ast:: extern_fn) ) ,
330325 UnsafeStaticMethod => {
331326 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)
335330 let trait_did_opt = translated_parent_item_opt ( cnum, item) ;
336331 dl_def ( ast:: def_static_method ( did, trait_did_opt, ast:: impure_fn) )
337332 }
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- }
342333 Type | ForeignType => dl_def ( ast:: def_ty ( did) ) ,
343334 Mod => dl_def ( ast:: def_mod ( did) ) ,
344335 ForeignMod => dl_def ( ast:: def_foreign_mod ( did) ) ,
@@ -822,12 +813,11 @@ pub fn get_static_methods_if_impl(intr: @ident_interner,
822813 let impl_method_doc = lookup_item ( impl_method_id. node , cdata. data ) ;
823814 let family = item_family ( impl_method_doc) ;
824815 match family {
825- StaticMethod | UnsafeStaticMethod | PureStaticMethod => {
816+ StaticMethod | UnsafeStaticMethod => {
826817 let purity;
827818 match item_family ( impl_method_doc) {
828819 StaticMethod => purity = ast:: impure_fn,
829820 UnsafeStaticMethod => purity = ast:: unsafe_fn,
830- PureStaticMethod => purity = ast:: pure_fn,
831821 _ => fail ! ( )
832822 }
833823
@@ -934,10 +924,8 @@ fn item_family_to_str(fam: Family) -> ~str {
934924 Const => ~"const ",
935925 Fn => ~"fn ",
936926 UnsafeFn => ~"unsafe fn",
937- PureFn => ~"pure fn",
938927 StaticMethod => ~"static method",
939928 UnsafeStaticMethod => ~"unsafe static method",
940- PureStaticMethod => ~"pure static method",
941929 ForeignFn => ~"foreign fn",
942930 Type => ~"type ",
943931 ForeignType => ~"foreign type",
0 commit comments