Removed useless Init method in rangset.h.
Removed unused #include in tokenizer.h.
This commit is contained in:
@@ -291,7 +291,6 @@ void TestIntMap() {
|
||||
void TestRangeSet() {
|
||||
RangeSet<int> set;
|
||||
|
||||
set.Init();
|
||||
set.Union(1, 4);
|
||||
set.Union(10, 16);
|
||||
set.Union(4, 10);
|
||||
|
||||
@@ -39,9 +39,10 @@
|
||||
#define COL_RANGESET_H
|
||||
|
||||
#include "../base/base.h"
|
||||
#include <vector>
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
/**
|
||||
* A set containing a union of [start,end) ranges that are automatically
|
||||
@@ -74,12 +75,6 @@ class RangeSet {
|
||||
ranges_.reserve(size);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated, use constructor.
|
||||
*/
|
||||
void Init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Reinitializes to an empty set of ranges.
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "../base/base.h"
|
||||
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@@ -102,8 +102,6 @@ void DistributedCache::InitCommon_(int channel_num_in) {
|
||||
overflow_next_.default_value() = BIG_BAD_NUMBER;
|
||||
overflow_device_ = NULL;
|
||||
|
||||
write_ranges_.Init();
|
||||
|
||||
my_rank_ = rpc::rank();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user