summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuhong Zhang <danielzhangyh@gmail.com>2020-07-09 15:43:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-09 17:55:59 +0000
commit77ffbcb4f5673b154fe64872cba9f34ce97bc55d (patch)
treea9c19809d6e0dc647fccbdef645dab371fafa2dd
parentab4d803f1f2f57cf9dbec89175f8eb52cb4761f2 (diff)
downloadmongo-77ffbcb4f5673b154fe64872cba9f34ce97bc55d.tar.gz
SERVER-49099 Remove the Node::swap() function in Biggie
-rw-r--r--src/mongo/db/storage/biggie/store.h21
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;
}