@@ -19,7 +19,7 @@ use super::print_item::{full_path, item_path, print_item};
19
19
use super :: write_shared:: write_shared;
20
20
use super :: {
21
21
print_sidebar, settings, AllTypes , NameDoc , SharedContext , StylePath , BASIC_KEYWORDS ,
22
- CURRENT_DEPTH , INITIAL_IDS ,
22
+ INITIAL_IDS ,
23
23
} ;
24
24
25
25
use crate :: clean:: { self , AttributesExt } ;
@@ -106,12 +106,6 @@ impl<'tcx> Context<'tcx> {
106
106
}
107
107
108
108
fn render_item ( & self , it : & clean:: Item , pushname : bool ) -> String {
109
- // A little unfortunate that this is done like this, but it sure
110
- // does make formatting *a lot* nicer.
111
- CURRENT_DEPTH . with ( |slot| {
112
- slot. set ( self . current . len ( ) ) ;
113
- } ) ;
114
-
115
109
let mut title = if it. is_primitive ( ) || it. is_keyword ( ) {
116
110
// No need to include the namespace for primitive types and keywords
117
111
String :: new ( )
@@ -422,8 +416,6 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
422
416
redirections : if generate_redirect_map { Some ( Default :: default ( ) ) } else { None } ,
423
417
} ;
424
418
425
- CURRENT_DEPTH . with ( |s| s. set ( 0 ) ) ;
426
-
427
419
// Write shared runs within a flock; disable thread dispatching of IO temporarily.
428
420
Arc :: get_mut ( & mut cx. shared ) . unwrap ( ) . fs . set_sync_only ( true ) ;
429
421
write_shared ( & cx, & krate, index, & md_opts) ?;
0 commit comments