@@ -846,13 +846,6 @@ impl<'a> State<'a> {
846
846
self . bclose_ ( span, INDENT_UNIT )
847
847
}
848
848
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
-
856
849
crate fn break_offset_if_not_bol ( & mut self , n : usize ,
857
850
off : isize ) -> io:: Result < ( ) > {
858
851
if !self . is_bol ( ) {
@@ -1663,16 +1656,6 @@ impl<'a> State<'a> {
1663
1656
self . print_block_with_attrs ( blk, & [ ] )
1664
1657
}
1665
1658
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
-
1676
1659
crate fn print_block_unclosed_indent ( & mut self , blk : & ast:: Block ,
1677
1660
indented : usize ) -> io:: Result < ( ) > {
1678
1661
self . print_block_maybe_unclosed ( blk, indented, & [ ] , false )
@@ -2357,14 +2340,6 @@ impl<'a> State<'a> {
2357
2340
self . ann . post ( self , AnnNode :: Name ( & name) )
2358
2341
}
2359
2342
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
-
2368
2343
fn print_path ( & mut self ,
2369
2344
path : & ast:: Path ,
2370
2345
colons_before_params : bool ,
@@ -3072,30 +3047,6 @@ impl<'a> State<'a> {
3072
3047
Ok ( ( ) )
3073
3048
}
3074
3049
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
-
3099
3050
crate fn print_fn_header_info ( & mut self ,
3100
3051
header : ast:: FnHeader ,
3101
3052
vis : & ast:: Visibility ) -> io:: Result < ( ) > {
0 commit comments