From c8421569872d0738907e56420415e4e07e67529b Mon Sep 17 00:00:00 2001 From: "yurys@chromium.org" Date: Fri, 29 Jan 2010 12:53:37 +0000 Subject: DevTools: remove obsolete code. Review URL: http://codereview.chromium.org/555160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37511 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/devtools/js/inject_dispatch.js | 31 ------------------------------ 1 file changed, 31 deletions(-) (limited to 'webkit/glue') diff --git a/webkit/glue/devtools/js/inject_dispatch.js b/webkit/glue/devtools/js/inject_dispatch.js index f327c5a..c0ea4bd 100644 --- a/webkit/glue/devtools/js/inject_dispatch.js +++ b/webkit/glue/devtools/js/inject_dispatch.js @@ -82,37 +82,6 @@ function dispatch(method, var_args) { DevToolsAgentHost.dispatch(call); }; - -// TODO(yurys): remove once injected script lives in the inspected context -if (this.InjectedScript) { - -// Plugging into upstreamed support. -InjectedScript._window = function() { - return contentWindow; -}; - - -// Plugging into upstreamed support. -InjectedScript.evaluateOnSelf = function(funcBody) { - return DevToolsAgentHost.evaluateOnSelf("(" + funcBody + ")();"); -}; - - -// TODO(pfeldman): Remove once Object.getOwnPropertyNames is implemented. -InjectedScript._getPropertyNames = function(object, resultSet) -{ - for (var name in object) - resultSet[name] = true; -} - -} - -// Plugging into upstreamed support. -Object.className = function(obj) { - return (obj == null) ? "null" : obj.constructor.name; -}; - - /** * A no-op function that is called by debugger agent just to trigger v8 * execution. -- cgit v1.1