Removed unnecessary private function
This commit is contained in:
parent
51019502ec
commit
d18edfb1d4
@ -76,13 +76,6 @@ void BlobOnBlocks::flush() {
|
|||||||
_datatree->flush();
|
_datatree->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlobOnBlocks::resizeIfSmallerThan(uint64_t neededSize) {
|
|
||||||
//TODO This is inefficient, because size() and resizeNumBytes() both traverse the tree. Better: _datatree->ensureMinSize(x)
|
|
||||||
if (neededSize > size()) {
|
|
||||||
_datatree->resizeNumBytes(neededSize);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Key BlobOnBlocks::key() const {
|
Key BlobOnBlocks::key() const {
|
||||||
return _datatree->key();
|
return _datatree->key();
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
void traverseLeaves(uint64_t offsetBytes, uint64_t sizeBytes, std::function<void (uint64_t, datanodestore::DataLeafNode *, uint32_t, uint32_t)>) const;
|
void traverseLeaves(uint64_t offsetBytes, uint64_t sizeBytes, std::function<void (uint64_t, datanodestore::DataLeafNode *, uint32_t, uint32_t)>) const;
|
||||||
void resizeIfSmallerThan(uint64_t neededSize);
|
|
||||||
|
|
||||||
cpputils::unique_ref<parallelaccessdatatreestore::DataTreeRef> _datatree;
|
cpputils::unique_ref<parallelaccessdatatreestore::DataTreeRef> _datatree;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user