diff options
author | Yuhong Zhang <danielzhangyh@gmail.com> | 2020-07-09 15:43:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-09 17:55:59 +0000 |
commit | 77ffbcb4f5673b154fe64872cba9f34ce97bc55d (patch) | |
tree | a9c19809d6e0dc647fccbdef645dab371fafa2dd | |
parent | ab4d803f1f2f57cf9dbec89175f8eb52cb4761f2 (diff) | |
download | mongo-77ffbcb4f5673b154fe64872cba9f34ce97bc55d.tar.gz |
SERVER-49099 Remove the Node::swap() function in Biggie
-rw-r--r-- | src/mongo/db/storage/biggie/store.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/storage/biggie/store.h b/src/mongo/db/storage/biggie/store.h index c33e52334a4..6abf3c34e39 100644 --- a/src/mongo/db/storage/biggie/store.h +++ b/src/mongo/db/storage/biggie/store.h @@ -818,18 +818,6 @@ private: virtual ~Node() = default; - friend void swap(Node& first, Node& second) { - std::swap(first.trieKey, second.trieKey); - std::swap(first.depth, second.depth); - std::swap(first.data, second.data); - std::swap(first.children, second.children); - } - - Node& operator=(const Node other) { - swap(*this, other); - return *this; - } - bool isLeaf() const { return !_numChildren; } @@ -866,17 +854,8 @@ private: _nextVersion->_hasPreviousVersion = false; } - friend void swap(Head& first, Head& second) { - Node::swap(first, second); - } - Head(Head&& other) : Node(std::move(other)) {} - Head& operator=(const Head other) { - swap(*this, other); - return *this; - } - bool hasPreviousVersion() const { return _hasPreviousVersion; } |