@@ -322,10 +322,6 @@ where
322322 cursor : & Cursor ,
323323 position : & PositionState ,
324324 ) -> Self :: State {
325- if cfg ! ( feature = "mark_branches" ) {
326- cursor. advance_to_placeholder ( position) ;
327- }
328-
329325 // get parent and position
330326 let current = cursor. current ( ) ;
331327 let parent = if position. get ( ) == Position :: FirstChild {
@@ -346,22 +342,12 @@ where
346342 for ( index, item) in items. enumerate ( ) {
347343 hashed_items. insert ( ( self . key_fn ) ( & item) ) ;
348344 let ( set_index, view) = ( self . view_fn ) ( index, item) ;
349- if cfg ! ( feature = "mark_branches" ) {
350- cursor. advance_to_placeholder ( position) ;
351- }
352345 let item = view. hydrate :: < FROM_SERVER > ( cursor, position) ;
353- if cfg ! ( feature = "mark_branches" ) {
354- cursor. advance_to_placeholder ( position) ;
355- }
356346 rendered_items. push ( Some ( ( set_index, item) ) ) ;
357347 }
358348 let marker = cursor. next_placeholder ( position) ;
359349 position. set ( Position :: NextChild ) ;
360350
361- if cfg ! ( feature = "mark_branches" ) {
362- cursor. advance_to_placeholder ( position) ;
363- }
364-
365351 KeyedState {
366352 parent : Some ( parent) ,
367353 marker,
@@ -375,10 +361,6 @@ where
375361 cursor : & Cursor ,
376362 position : & PositionState ,
377363 ) -> Self :: State {
378- if cfg ! ( feature = "mark_branches" ) {
379- cursor. advance_to_placeholder ( position) ;
380- }
381-
382364 // get parent and position
383365 let current = cursor. current ( ) ;
384366 let parent = if position. get ( ) == Position :: FirstChild {
@@ -399,22 +381,12 @@ where
399381 for ( index, item) in items. enumerate ( ) {
400382 hashed_items. insert ( ( self . key_fn ) ( & item) ) ;
401383 let ( set_index, view) = ( self . view_fn ) ( index, item) ;
402- if cfg ! ( feature = "mark_branches" ) {
403- cursor. advance_to_placeholder ( position) ;
404- }
405384 let item = view. hydrate_async ( cursor, position) . await ;
406- if cfg ! ( feature = "mark_branches" ) {
407- cursor. advance_to_placeholder ( position) ;
408- }
409385 rendered_items. push ( Some ( ( set_index, item) ) ) ;
410386 }
411387 let marker = cursor. next_placeholder ( position) ;
412388 position. set ( Position :: NextChild ) ;
413389
414- if cfg ! ( feature = "mark_branches" ) {
415- cursor. advance_to_placeholder ( position) ;
416- }
417-
418390 KeyedState {
419391 parent : Some ( parent) ,
420392 marker,
0 commit comments