summaryrefslogtreecommitdiffstats
path: root/content/common/indexed_db
diff options
context:
space:
mode:
authorandrewhayden <andrewhayden@chromium.org>2014-08-29 09:18:19 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-29 16:19:09 +0000
commita7703f15c24dfbd4418cb051c4c7547102312d3f (patch)
tree65ddd18a175855bc8e5250f01d0bd99eb5f7c9ba /content/common/indexed_db
parent59e1ddf83ef949d8ebfa1bfe8333a66b15875cf5 (diff)
downloadchromium_src-a7703f15c24dfbd4418cb051c4c7547102312d3f.zip
chromium_src-a7703f15c24dfbd4418cb051c4c7547102312d3f.tar.gz
chromium_src-a7703f15c24dfbd4418cb051c4c7547102312d3f.tar.bz2
Revert "Explicitly implement copy ctor/assignment operator for IndexedDBKey"
This reverts commit 662e95081cfe6aa20be3a367d7e12b71f9d790b3. Original commit: https://codereview.chromium.org/136853003 BUG=333205 Review URL: https://codereview.chromium.org/473003003 Cr-Commit-Position: refs/heads/master@{#292645}
Diffstat (limited to 'content/common/indexed_db')
-rw-r--r--content/common/indexed_db/indexed_db_key.cc23
-rw-r--r--content/common/indexed_db/indexed_db_key.h3
2 files changed, 0 insertions, 26 deletions
diff --git a/content/common/indexed_db/indexed_db_key.cc b/content/common/indexed_db/indexed_db_key.cc
index 12e0730..4c553ca 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;
diff --git a/content/common/indexed_db/indexed_db_key.h b/content/common/indexed_db/indexed_db_key.h
index 60878a3..bb02770 100644
--- a/content/common/indexed_db/indexed_db_key.h
+++ b/content/common/indexed_db/indexed_db_key.h
@@ -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;