Index: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
index 5feed2b53378580d95ed3c82e61b9a35f98fa700..bca3378a3fe7112b1a1eafe9d0798d7b3a101e1b 100644 |
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
@@ -137,17 +137,6 @@ void ThreadDebugger::createFunctionProperty(v8::Local<v8::Context> context, v8:: |
return; |
} |
-bool ThreadDebugger::isCommandLineAPIMethod(const String& name) |
-{ |
- DEFINE_STATIC_LOCAL(HashSet<String>, methods, ()); |
- if (methods.size() == 0) { |
- const char* members[] = { "monitorEvents", "unmonitorEvents", "getEventListeners" }; |
- for (size_t i = 0; i < WTF_ARRAY_LENGTH(members); ++i) |
- methods.add(members[i]); |
- } |
- return methods.find(name) != methods.end() || V8Debugger::isCommandLineAPIMethod(name); |
-} |
- |
void ThreadDebugger::installAdditionalCommandLineAPI(v8::Local<v8::Context> context, v8::Local<v8::Object> object) |
{ |
createFunctionProperty(context, object, "monitorEvents", ThreadDebugger::monitorEventsCallback, "function monitorEvents(object, [types]) { [Command Line API] }"); |