Index: Source/core/html/HTMLCollection.cpp |
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp |
index b78c2800dbd1161e593df2c51c7c3f73a4c0dc09..c621ed715d386428a80f229fa8ebad085ba9e2a2 100644 |
--- a/Source/core/html/HTMLCollection.cpp |
+++ b/Source/core/html/HTMLCollection.cpp |
@@ -647,26 +647,6 @@ void HTMLCollection::updateNameCache() const |
setHasNameCache(); |
} |
-bool HTMLCollection::hasNamedItem(const AtomicString& name) const |
-{ |
- if (name.isEmpty()) |
- return false; |
- |
- updateNameCache(); |
- |
- if (Vector<Element*>* cache = idCache(name)) { |
- if (!cache->isEmpty()) |
- return true; |
- } |
- |
- if (Vector<Element*>* cache = nameCache(name)) { |
- if (!cache->isEmpty()) |
- return true; |
- } |
- |
- return false; |
-} |
- |
void HTMLCollection::namedItems(const AtomicString& name, Vector<RefPtr<Node> >& result) const |
{ |
ASSERT(result.isEmpty()); |