Web Inspector: Simplify console.clear
https://bugs.webkit.org/show_bug.cgi?id=157316
Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-05-03
Reviewed by Timothy Hatcher.
* inspector/ScriptArguments.cpp:
(Inspector::ScriptArguments::createEmpty):
(Inspector::ScriptArguments::ScriptArguments):
* inspector/ScriptArguments.h:
Provide a way to create an empty list.
* runtime/ConsoleClient.cpp:
(JSC::ConsoleClient::clear):
* runtime/ConsoleClient.h:
Drop unnecessary parameter.
* runtime/ConsoleObject.cpp:
(JSC::consoleProtoFuncClear):
No need to parse arguments.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed