@@ -846,13 +846,6 @@ impl<'a> State<'a> {
846846 self . bclose_ ( span, INDENT_UNIT )
847847 }
848848
849- crate fn in_cbox ( & self ) -> bool {
850- match self . boxes . last ( ) {
851- Some ( & last_box) => last_box == pp:: Breaks :: Consistent ,
852- None => false
853- }
854- }
855-
856849 crate fn break_offset_if_not_bol ( & mut self , n : usize ,
857850 off : isize ) -> io:: Result < ( ) > {
858851 if !self . is_bol ( ) {
@@ -1663,16 +1656,6 @@ impl<'a> State<'a> {
16631656 self . print_block_with_attrs ( blk, & [ ] )
16641657 }
16651658
1666- crate fn print_block_unclosed ( & mut self , blk : & ast:: Block ) -> io:: Result < ( ) > {
1667- self . print_block_unclosed_indent ( blk, INDENT_UNIT )
1668- }
1669-
1670- crate fn print_block_unclosed_with_attrs ( & mut self , blk : & ast:: Block ,
1671- attrs : & [ ast:: Attribute ] )
1672- -> io:: Result < ( ) > {
1673- self . print_block_maybe_unclosed ( blk, INDENT_UNIT , attrs, false )
1674- }
1675-
16761659 crate fn print_block_unclosed_indent ( & mut self , blk : & ast:: Block ,
16771660 indented : usize ) -> io:: Result < ( ) > {
16781661 self . print_block_maybe_unclosed ( blk, indented, & [ ] , false )
@@ -2357,14 +2340,6 @@ impl<'a> State<'a> {
23572340 self . ann . post ( self , AnnNode :: Name ( & name) )
23582341 }
23592342
2360- crate fn print_for_decl ( & mut self , loc : & ast:: Local ,
2361- coll : & ast:: Expr ) -> io:: Result < ( ) > {
2362- self . print_local_decl ( loc) ?;
2363- self . s . space ( ) ?;
2364- self . word_space ( "in" ) ?;
2365- self . print_expr ( coll)
2366- }
2367-
23682343 fn print_path ( & mut self ,
23692344 path : & ast:: Path ,
23702345 colons_before_params : bool ,
@@ -3072,30 +3047,6 @@ impl<'a> State<'a> {
30723047 Ok ( ( ) )
30733048 }
30743049
3075- crate fn print_opt_abi_and_extern_if_nondefault ( & mut self ,
3076- opt_abi : Option < Abi > )
3077- -> io:: Result < ( ) > {
3078- match opt_abi {
3079- Some ( Abi :: Rust ) => Ok ( ( ) ) ,
3080- Some ( abi) => {
3081- self . word_nbsp ( "extern" ) ?;
3082- self . word_nbsp ( abi. to_string ( ) )
3083- }
3084- None => Ok ( ( ) )
3085- }
3086- }
3087-
3088- crate fn print_extern_opt_abi ( & mut self ,
3089- opt_abi : Option < Abi > ) -> io:: Result < ( ) > {
3090- match opt_abi {
3091- Some ( abi) => {
3092- self . word_nbsp ( "extern" ) ?;
3093- self . word_nbsp ( abi. to_string ( ) )
3094- }
3095- None => Ok ( ( ) )
3096- }
3097- }
3098-
30993050 crate fn print_fn_header_info ( & mut self ,
31003051 header : ast:: FnHeader ,
31013052 vis : & ast:: Visibility ) -> io:: Result < ( ) > {
0 commit comments