blob: ba28cb18eded1eea64a0c16b7453be6a75f1cc77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
--- include/mdds/multi_type_vector_def.inl
+++ include/mdds/multi_type_vector_def.inl
@@ -843,18 +843,12 @@
typename multi_type_vector<_CellBlockFunc, _EventFunc>::iterator
multi_type_vector<_CellBlockFunc, _EventFunc>::push_back_empty()
{
- size_type last_block_size = 0;
- if (!m_blocks.empty())
- last_block_size = m_blocks.back().m_size;
-
size_type block_index = m_blocks.size();
- size_type start_pos = m_cur_size;
if (!append_empty(1))
{
// Last empty block has been extended.
--block_index;
- start_pos -= last_block_size;
}
// Get the iterator of the last block.
@@ -3923,8 +3917,6 @@
size_type offset = start_row - start_row_in_block1;
size_type end_row_in_block2 = start_row_in_block2 + blk2->m_size - 1;
- size_type start_row_itr = start_row_in_block1;
-
// Initially set to erase blocks between block 1 and block 2 non-inclusive at either end.
typename blocks_type::iterator it_erase_begin = m_blocks.begin() + block_index1 + 1;
typename blocks_type::iterator it_erase_end = m_blocks.begin() + block_index2;
@@ -3948,7 +3940,6 @@
data_blk.mp_data = blk0->mp_data;
blk0->mp_data = nullptr;
- start_row_itr -= blk0->m_size;
data_blk.m_size += blk0->m_size;
data_blk.m_position = blk0->m_position;
@@ -3967,7 +3958,6 @@
element_block_func::resize_block(*blk1->mp_data, offset);
}
blk1->m_size = offset;
- start_row_itr += offset;
}
if (blk0_copied)
|