Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 4845c046c1615d0eb68e82d89e5535b9dc29501c..3e99a1bfe7116868bcadeea0b3e41a5c0f80530b 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3856,18 +3856,6 @@ PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc |
return nullptr; |
} |
-PassRefPtrWillBeRawPtr<Event> Document::createEvent(ExceptionState& exceptionState) |
-{ |
- if (!isSVGDocument()) { |
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0)); |
- return nullptr; |
- } |
- |
- UseCounter::count(this, UseCounter::DocumentCreateEventOptionalArgument); |
- // Legacy SVGDocument behavior. |
- return createEvent("undefined", exceptionState); |
-} |
- |
void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType) |
{ |
if (ContextFeatures::mutationEventsEnabled(this)) |