Index: Source/core/inspector/InspectorInspectorAgent.cpp |
diff --git a/Source/core/inspector/InspectorInspectorAgent.cpp b/Source/core/inspector/InspectorInspectorAgent.cpp |
index 43f7ff54ce19b59ee7bb1626d47ad108a53586d0..caf993d990c322e49c2f6b533126f58698f0b805 100644 |
--- a/Source/core/inspector/InspectorInspectorAgent.cpp |
+++ b/Source/core/inspector/InspectorInspectorAgent.cpp |
@@ -75,24 +75,6 @@ void InspectorInspectorAgent::trace(Visitor* visitor) |
InspectorBaseAgent::trace(visitor); |
} |
-void InspectorInspectorAgent::didClearDocumentOfWindowObject(LocalFrame* frame) |
-{ |
- if (m_injectedScriptForOrigin.isEmpty()) |
- return; |
- |
- String origin = frame->document()->securityOrigin()->toRawString(); |
- String script = m_injectedScriptForOrigin.get(origin); |
- if (script.isEmpty()) |
- return; |
- int injectedScriptId = m_injectedScriptManager->injectedScriptIdFor(ScriptState::forMainWorld(frame)); |
- StringBuilder scriptSource; |
- scriptSource.append(script); |
- scriptSource.append('('); |
- scriptSource.appendNumber(injectedScriptId); |
- scriptSource.append(')'); |
- frame->script().executeScriptInMainWorld(scriptSource.toString()); |
-} |
- |
void InspectorInspectorAgent::init() |
{ |
m_instrumentingAgents->setInspectorInspectorAgent(this); |
@@ -152,11 +134,6 @@ void InspectorInspectorAgent::evaluateForTestInFrontend(long callId, const Strin |
} |
} |
-void InspectorInspectorAgent::setInjectedScriptForOrigin(const String& origin, const String& source) |
-{ |
- m_injectedScriptForOrigin.set(origin, source); |
-} |
- |
void InspectorInspectorAgent::inspect(PassRefPtr<TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<JSONObject> hints) |
{ |
if (m_state->getBoolean(InspectorAgentState::inspectorAgentEnabled) && m_frontend) { |