Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1303)

Unified Diff: content/common/indexed_db/indexed_db_key.cc

Issue 473003003: Revert "Explicitly implement copy ctor/assignment operator for IndexedDBKey" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/indexed_db/indexed_db_key.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_key.cc
diff --git a/content/common/indexed_db/indexed_db_key.cc b/content/common/indexed_db/indexed_db_key.cc
index 12e0730604c606f583033a3bad685d8083bee1d7..4c553ca4bdf500f09c8b6ca99453fbc5cb2966f3 100644
--- a/content/common/indexed_db/indexed_db_key.cc
+++ b/content/common/indexed_db/indexed_db_key.cc
@@ -94,29 +94,6 @@ IndexedDBKey::IndexedDBKey(const base::string16& string)
IndexedDBKey::~IndexedDBKey() {}
-IndexedDBKey::IndexedDBKey(const IndexedDBKey& other)
- : type_(other.type_),
- array_(other.array_),
- binary_(other.binary_),
- string_(other.string_),
- date_(other.date_),
- number_(other.number_),
- size_estimate_(other.size_estimate_) {
- DCHECK((!IsValid() && !other.IsValid()) || CompareTo(other) == 0);
-}
-
-IndexedDBKey& IndexedDBKey::operator=(const IndexedDBKey& other) {
- type_ = other.type_;
- array_ = other.array_;
- binary_ = other.binary_;
- string_ = other.string_;
- date_ = other.date_;
- number_ = other.number_;
- size_estimate_ = other.size_estimate_;
- DCHECK((!IsValid() && !other.IsValid()) || CompareTo(other) == 0);
- return *this;
-}
-
bool IndexedDBKey::IsValid() const {
if (type_ == WebIDBKeyTypeInvalid || type_ == WebIDBKeyTypeNull)
return false;
« no previous file with comments | « content/common/indexed_db/indexed_db_key.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698