@@ -244,9 +244,6 @@ void Block::erase_tail(size_t start) {
244244 ++it;
245245 }
246246 }
247- if (start < row_same_bit.size ()) {
248- row_same_bit.erase (row_same_bit.begin () + start, row_same_bit.end ());
249- }
250247}
251248
252249void Block::erase (size_t position) {
@@ -278,9 +275,6 @@ void Block::erase_impl(size_t position) {
278275 }
279276 }
280277 }
281- if (position < row_same_bit.size ()) {
282- row_same_bit.erase (row_same_bit.begin () + position);
283- }
284278}
285279
286280void Block::erase (const String& name) {
@@ -433,9 +427,6 @@ void Block::set_num_rows(size_t length) {
433427 elem.column = elem.column ->shrink (length);
434428 }
435429 }
436- if (length < row_same_bit.size ()) {
437- row_same_bit.resize (length);
438- }
439430 }
440431}
441432
@@ -450,9 +441,6 @@ void Block::skip_num_rows(int64_t& length) {
450441 elem.column = elem.column ->cut (length, origin_rows - length);
451442 }
452443 }
453- if (length < row_same_bit.size ()) {
454- row_same_bit.assign (row_same_bit.begin () + length, row_same_bit.end ());
455- }
456444 }
457445}
458446
@@ -783,7 +771,6 @@ DataTypes Block::get_data_types() const {
783771void Block::clear () {
784772 data.clear ();
785773 index_by_name.clear ();
786- row_same_bit.clear ();
787774}
788775
789776void Block::clear_column_data (int64_t column_size) noexcept {
@@ -802,7 +789,6 @@ void Block::clear_column_data(int64_t column_size) noexcept {
802789 (*std::move (d.column )).assume_mutable ()->clear ();
803790 }
804791 }
805- row_same_bit.clear ();
806792}
807793
808794void Block::erase_tmp_columns () noexcept {
@@ -836,14 +822,12 @@ void Block::swap(Block& other) noexcept {
836822 SCOPED_SKIP_MEMORY_CHECK ();
837823 data.swap (other.data );
838824 index_by_name.swap (other.index_by_name );
839- row_same_bit.swap (other.row_same_bit );
840825}
841826
842827void Block::swap (Block&& other) noexcept {
843828 SCOPED_SKIP_MEMORY_CHECK ();
844829 data = std::move (other.data );
845830 index_by_name = std::move (other.index_by_name );
846- row_same_bit = std::move (other.row_same_bit );
847831}
848832
849833void Block::shuffle_columns (const std::vector<int >& result_column_ids) {
@@ -1167,9 +1151,6 @@ void MutableBlock::erase(const String& name) {
11671151 ++it;
11681152 }
11691153 }
1170- // if (position < row_same_bit.size()) {
1171- // row_same_bit.erase(row_same_bit.begin() + position);
1172- // }
11731154}
11741155
11751156Block MutableBlock::to_block (int start_column) {
0 commit comments