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

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

Issue 1312333005: Remove FormDataList::Entry. (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
« no previous file with comments | « 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 b697e220f9ed045d5b0f1a21c3ef9ec6006a9c24..6052aa94051d3139465acea9d77dc0f2c3e3359a 100644
--- a/Source/core/html/FormDataList.cpp
+++ b/Source/core/html/FormDataList.cpp
@@ -38,41 +38,6 @@ void FormDataList::appendItem(const FormDataList::Item& item)
m_items.append(item);
}
-FormDataList::Entry FormDataList::getEntry(const String& key) const
-{
- const CString keyData = encodeAndNormalize(key);
- for (const Item& item : items()) {
- if (item.key() == keyData)
- return itemsToEntry(item);
- }
- return Entry();
-}
-
-HeapVector<FormDataList::Entry> FormDataList::getAll(const String& key) const
-{
- HeapVector<FormDataList::Entry> matches;
-
- const CString keyData = encodeAndNormalize(key);
- for (const Item& item : items()) {
- if (item.key() == keyData)
- matches.append(itemsToEntry(item));
- }
-
- return matches;
-}
-
-FormDataList::Entry FormDataList::itemsToEntry(const FormDataList::Item& item) const
-{
- const CString nameData = item.key();
- const String name = m_encoding.decode(nameData.data(), nameData.length());
-
- if (!item.blob()) {
- const CString valueData = item.data();
- return Entry(name, m_encoding.decode(valueData.data(), valueData.length()));
- }
- return Entry(name, item.file());
-}
-
File* FormDataList::Item::file() const
{
ASSERT(blob());
@@ -194,12 +159,6 @@ DEFINE_TRACE(FormDataList)
visitor->trace(m_items);
}
-
-DEFINE_TRACE(FormDataList::Entry)
-{
- visitor->trace(m_file);
-}
-
DEFINE_TRACE(FormDataList::Item)
{
visitor->trace(m_blob);
« no previous file with comments | « Source/core/html/FormDataList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698