Commit a7703f15 authored by andrewhayden's avatar andrewhayden Committed by Commit bot

Revert "Explicitly implement copy ctor/assignment operator for IndexedDBKey"

This reverts commit 662e9508.

Original commit: https://codereview.chromium.org/136853003

BUG=333205

Review URL: https://codereview.chromium.org/473003003

Cr-Commit-Position: refs/heads/master@{#292645}
parent 59e1ddf8
......@@ -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;
......
......@@ -31,11 +31,8 @@ class CONTENT_EXPORT IndexedDBKey {
explicit IndexedDBKey(const base::string16& string);
IndexedDBKey(double number,
blink::WebIDBKeyType type); // must be date or number
IndexedDBKey(const IndexedDBKey& other);
~IndexedDBKey();
IndexedDBKey& operator=(const IndexedDBKey& other);
bool IsValid() const;
bool IsLessThan(const IndexedDBKey& other) const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment