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

Unified Diff: Source/core/html/FormDataList.cpp

Issue 1308183006: Move FormDataList::deleteEntry() and hasEntry() to DOMFormData. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
« Source/core/html/DOMFormData.cpp ('K') | « Source/core/html/FormDataList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormDataList.cpp
diff --git a/Source/core/html/FormDataList.cpp b/Source/core/html/FormDataList.cpp
index 1981dcf837421a938a7b5f14fd5845c14a3e9141..ca96928cf3c6efa263c78211f179e89e8d9b461b 100644
--- a/Source/core/html/FormDataList.cpp
+++ b/Source/core/html/FormDataList.cpp
@@ -38,20 +38,6 @@ void FormDataList::appendItem(const FormDataList::Item& item)
m_items.append(item);
}
-void FormDataList::deleteEntry(const String& key)
-{
- const CString keyData = encodeAndNormalize(key);
- size_t i = 0;
- while (i < m_items.size()) {
- if (m_items[i].key() == keyData) {
- m_items.remove(i);
- } else {
- ++i;
- }
- }
- return;
-}
-
FormDataList::Entry FormDataList::getEntry(const String& key) const
{
const CString keyData = encodeAndNormalize(key);
@@ -111,16 +97,6 @@ FormDataList::Entry FormDataList::itemsToEntry(const FormDataList::Item& item) c
return Entry(name, File::create(filename, currentTimeMS(), item.blob()->blobDataHandle()));
}
-bool FormDataList::hasEntry(const String& key) const
-{
- const CString keyData = encodeAndNormalize(key);
- for (const Item& item : items()) {
- if (item.key() == keyData)
- return true;
- }
- return false;
-}
-
PassRefPtr<FormData> FormDataList::createFormData(FormData::EncodingType encodingType)
{
RefPtr<FormData> result = FormData::create();
« Source/core/html/DOMFormData.cpp ('K') | « Source/core/html/FormDataList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698