Index: Source/core/events/EventListenerMap.cpp |
diff --git a/Source/core/events/EventListenerMap.cpp b/Source/core/events/EventListenerMap.cpp |
index 22f4348f5a73d0dab76df6720f35ee8ad52cba6b..11150452bcf65ecbc3f486efdd59ad26bd846656 100644 |
--- a/Source/core/events/EventListenerMap.cpp |
+++ b/Source/core/events/EventListenerMap.cpp |
@@ -169,31 +169,6 @@ EventListenerVector* EventListenerMap::find(const AtomicString& eventType) |
return 0; |
} |
-static void removeFirstListenerCreatedFromMarkup(EventListenerVector* listenerVector) |
-{ |
- for (size_t i = 0; i < listenerVector->size(); ++i) { |
- if (listenerVector->at(i).listener->wasCreatedFromMarkup()) { |
- listenerVector->remove(i); |
- return; |
- } |
- } |
- ASSERT_NOT_REACHED(); |
-} |
- |
-void EventListenerMap::removeFirstEventListenerCreatedFromMarkup(const AtomicString& eventType) |
-{ |
- assertNoActiveIterators(); |
- |
- for (unsigned i = 0; i < m_entries.size(); ++i) { |
- if (m_entries[i].first == eventType) { |
- removeFirstListenerCreatedFromMarkup(m_entries[i].second.get()); |
- if (m_entries[i].second->isEmpty()) |
- m_entries.remove(i); |
- return; |
- } |
- } |
-} |
- |
static void copyListenersNotCreatedFromMarkupToTarget(const AtomicString& eventType, EventListenerVector* listenerVector, EventTarget* target) |
{ |
for (const auto& eventListener : *listenerVector) { |
@@ -212,13 +187,6 @@ void EventListenerMap::copyEventListenersNotCreatedFromMarkupToTarget(EventTarge |
copyListenersNotCreatedFromMarkupToTarget(eventListener.first, eventListener.second.get(), target); |
} |
-EventListenerIterator::EventListenerIterator() |
- : m_map(nullptr) |
- , m_entryIndex(0) |
- , m_index(0) |
-{ |
-} |
- |
EventListenerIterator::EventListenerIterator(EventTarget* target) |
: m_map(nullptr) |
, m_entryIndex(0) |