Remove stale ScriptGlobalObject methods

https://bugs.webkit.org/show_bug.cgi?id=125276

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-12-05
Reviewed by Sam Weinig.

* bindings/js/ScriptObject.cpp:
(WebCore::ScriptGlobalObject::set):
* bindings/js/ScriptObject.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5995f121
2013-12-05 Joseph Pecoraro <pecoraro@apple.com>
Remove stale ScriptGlobalObject methods
https://bugs.webkit.org/show_bug.cgi?id=125276
Reviewed by Sam Weinig.
* bindings/js/ScriptObject.cpp:
(WebCore::ScriptGlobalObject::set):
* bindings/js/ScriptObject.h:
2013-12-04 Ryosuke Niwa <rniwa@webkit.org>
Change how the form element pointer affects parsing template elements, to reduce weirdness in templates
......@@ -36,14 +36,9 @@
#include <runtime/JSLock.h>
#if ENABLE(INSPECTOR)
#include "JSInjectedScriptHost.h"
#include "JSInspectorFrontendHost.h"
#endif
#if ENABLE(MEDIA_CONTROLS_SCRIPT)
#include "JSMediaControlsHost.h"
#endif
using namespace JSC;
namespace WebCore {
......@@ -84,26 +79,8 @@ bool ScriptGlobalObject::set(JSC::ExecState* scriptState, const char* name, Insp
globalObject->putDirect(scriptState->vm(), Identifier(scriptState, name), toJS(scriptState, globalObject, value));
return handleException(scriptState);
}
bool ScriptGlobalObject::set(JSC::ExecState* scriptState, const char* name, InjectedScriptHost* value)
{
JSLockHolder lock(scriptState);
JSDOMGlobalObject* globalObject = jsCast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject());
globalObject->putDirect(scriptState->vm(), Identifier(scriptState, name), toJS(scriptState, globalObject, value));
return handleException(scriptState);
}
#endif // ENABLE(INSPECTOR)
#if ENABLE(MEDIA_CONTROLS_SCRIPT)
bool ScriptGlobalObject::set(JSC::ExecState* scriptState, const char* name, MediaControlsHost* value)
{
JSLockHolder lock(scriptState);
JSDOMGlobalObject* globalObject = jsCast<JSDOMGlobalObject*>(scriptState->lexicalGlobalObject());
globalObject->putDirect(scriptState->vm(), Identifier(scriptState, name), toJS(scriptState, globalObject, value));
return handleException(scriptState);
}
#endif
bool ScriptGlobalObject::get(JSC::ExecState* scriptState, const char* name, ScriptObject& value)
{
JSLockHolder lock(scriptState);
......
......@@ -38,9 +38,8 @@
#include <runtime/JSObject.h>
namespace WebCore {
class InjectedScriptHost;
class InspectorFrontendHost;
class MediaControlsHost;
class ScriptObject : public ScriptValue {
public:
......@@ -59,12 +58,7 @@ namespace WebCore {
static bool set(JSC::ExecState*, const char* name, const ScriptObject&);
#if ENABLE(INSPECTOR)
static bool set(JSC::ExecState*, const char* name, InspectorFrontendHost*);
static bool set(JSC::ExecState*, const char* name, InjectedScriptHost*);
#endif
#if ENABLE(MEDIA_CONTROLS_SCRIPT)
static bool set(JSC::ExecState*, const char* name, MediaControlsHost*);
#endif
static bool get(JSC::ExecState*, const char* name, ScriptObject&);
static bool remove(JSC::ExecState*, const char* name);
private:
......
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