Index: Source/core/inspector/InspectorResourceAgent.cpp |
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp |
index 50d9b7545ec42fd73e0ec080a4ed450298f2afad..2f7c771a7810880ff0fa4caac2acb8e9c4ab44f0 100644 |
--- a/Source/core/inspector/InspectorResourceAgent.cpp |
+++ b/Source/core/inspector/InspectorResourceAgent.cpp |
@@ -271,18 +271,6 @@ static PassRefPtr<TypeBuilder::Network::Response> buildObjectForResourceResponse |
return responseObject; |
} |
-static PassRefPtr<TypeBuilder::Network::CachedResource> buildObjectForResource(const Resource& cachedResource, DocumentLoader* loader) |
-{ |
- RefPtr<TypeBuilder::Network::CachedResource> resourceObject = TypeBuilder::Network::CachedResource::create() |
- .setUrl(urlWithoutFragment(cachedResource.url()).string()) |
- .setType(InspectorPageAgent::cachedResourceTypeJson(cachedResource)) |
- .setBodySize(cachedResource.encodedSize()); |
- RefPtr<TypeBuilder::Network::Response> resourceResponse = buildObjectForResourceResponse(cachedResource.response(), loader); |
- if (resourceResponse) |
- resourceObject->setResponse(resourceResponse); |
- return resourceObject; |
-} |
- |
InspectorResourceAgent::~InspectorResourceAgent() |
{ |
if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) { |