File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
crates/bevy_ecs/src/storage Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ impl ComponentSparseSet {
324
324
let is_last = dense_index. as_usize ( ) == last_index;
325
325
self . entities . swap_remove ( dense_index. as_usize ( ) ) ;
326
326
// SAFETY: dense_index was just removed from `sparse`, which ensures that it is valid
327
- let ( value, _ , _ ) = unsafe {
327
+ let value = unsafe {
328
328
self . dense
329
329
. swap_remove_and_forget_unchecked ( last_index, dense_index)
330
330
} ;
Original file line number Diff line number Diff line change @@ -95,25 +95,23 @@ impl ThinColumn {
95
95
& mut self ,
96
96
last_element_index : usize ,
97
97
row : TableRow ,
98
- ) -> ( OwningPtr , ComponentTicks , MaybeLocation ) {
98
+ ) -> OwningPtr {
99
99
let data = self
100
100
. data
101
101
. swap_remove_unchecked ( row. as_usize ( ) , last_element_index) ;
102
- let added = self
103
- . added_ticks
102
+ self . added_ticks
104
103
. swap_remove_unchecked ( row. as_usize ( ) , last_element_index)
105
104
. read ( ) ;
106
- let changed = self
107
- . changed_ticks
105
+ self . changed_ticks
108
106
. swap_remove_unchecked ( row. as_usize ( ) , last_element_index)
109
107
. read ( ) ;
110
- let changed_by = self . changed_by . as_mut ( ) . map ( |changed_by| {
108
+ self . changed_by . as_mut ( ) . map ( |changed_by| {
111
109
changed_by
112
110
. swap_remove_unchecked ( row. as_usize ( ) , last_element_index)
113
111
. read ( )
114
112
} ) ;
115
113
116
- ( data, ComponentTicks { added , changed } , changed_by )
114
+ data
117
115
}
118
116
119
117
/// Call [`realloc`](std::alloc::realloc) to expand / shrink the memory allocation for this [`ThinColumn`]
You can’t perform that action at this time.
0 commit comments