Commit 694ea40e authored by ch.dumez@samsung.com's avatar ch.dumez@samsung.com

Remove dead code from DocumentOrderedMap

Remove dead code from DocumentOrderedMap:
- clear() method is never used
- checkConsistency() is declared but unimplemented
- "wtf/HashCountedSet.h" include is no longer needed

R=esprehn, adamk

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165118 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5913a51c
......@@ -61,11 +61,6 @@ inline bool keyMatchesLabelForAttribute(StringImpl* key, Element* element)
return element->hasTagName(labelTag) && element->getAttribute(forAttr).impl() == key;
}
void DocumentOrderedMap::clear()
{
m_map.clear();
}
void DocumentOrderedMap::add(StringImpl* key, Element* element)
{
ASSERT(key);
......
......@@ -31,7 +31,6 @@
#ifndef DocumentOrderedMap_h
#define DocumentOrderedMap_h
#include "wtf/HashCountedSet.h"
#include "wtf/HashMap.h"
#include "wtf/Vector.h"
#include "wtf/text/StringImpl.h"
......@@ -45,7 +44,6 @@ class DocumentOrderedMap {
public:
void add(StringImpl*, Element*);
void remove(StringImpl*, Element*);
void clear();
bool contains(StringImpl*) const;
bool containsMultiple(StringImpl*) const;
......@@ -56,8 +54,6 @@ public:
Element* getElementByLowercasedMapName(StringImpl*, const TreeScope*) const;
Element* getElementByLabelForAttribute(StringImpl*, const TreeScope*) const;
void checkConsistency() const;
private:
template<bool keyMatches(StringImpl*, Element*)> Element* get(StringImpl*, const TreeScope*) 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