Skip to content

Commit ef1d2d5

Browse files
authored
refactor: replace boost::container::deque with std::deque (#4113)
1 parent 3d2b644 commit ef1d2d5

5 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/codec/codec_bench_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
#include <deque>
1718
#include <iostream>
1819

1920
#include "base/kv_iterator.h"
@@ -35,7 +36,7 @@ class CodecBenchmarkTest : public ::testing::Test {
3536
};
3637

3738
void RunHasTs(::openmldb::storage::DataBlock* db) {
38-
boost::container::deque<std::pair<uint64_t, ::openmldb::base::Slice>> data;
39+
std::deque<std::pair<uint64_t, ::openmldb::base::Slice>> data;
3940
uint32_t total_block_size = 0;
4041
for (uint32_t i = 0; i < 1000; i++) {
4142
data.emplace_back(1000, std::move(::openmldb::base::Slice(db->data, db->size)));

src/codec/codec_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17+
#include <deque>
1718
#include <memory>
1819
#include <string>
1920
#include <vector>
2021

21-
#include "boost/container/deque.hpp"
2222
#include "codec/encrypt.h"
2323
#include "codec/row_codec.h"
2424
#include "gtest/gtest.h"
@@ -36,7 +36,7 @@ class CodecTest : public ::testing::Test {
3636
};
3737

3838
TEST_F(CodecTest, EncodeRows) {
39-
boost::container::deque<std::pair<uint64_t, ::openmldb::base::Slice>> data;
39+
std::deque<std::pair<uint64_t, ::openmldb::base::Slice>> data;
4040
std::string test1 = "value1";
4141
std::string test2 = "value2";
4242
std::string empty;

src/codec/row_codec.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <vector>
2222

2323
#include "base/glog_wrapper.h"
24-
#include "boost/container/deque.hpp"
2524
#include "codec/schema_codec.h"
2625
#include "codec/row_codec.h"
2726
#include "storage/segment.h"

src/codec/row_codec.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <vector>
2424

2525
#include "base/status.h"
26-
#include "boost/container/deque.hpp"
2726
#include "butil/iobuf.h"
2827
#include "codec/codec.h"
2928
#include "storage/segment.h"

src/tablet/tablet_impl.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include "base/strings.h"
4747
#include "base/sys_info.h"
4848
#include "boost/bind.hpp"
49-
#include "boost/container/deque.hpp"
5049
#include "brpc/controller.h"
5150
#include "butil/iobuf.h"
5251
#include "codec/codec.h"

0 commit comments

Comments
 (0)