Index: Source/core/fetch/Resource.cpp |
diff --git a/Source/core/fetch/Resource.cpp b/Source/core/fetch/Resource.cpp |
index a58d4e3819ecf82bf45a6d62c936a9f4f387ce1a..8de53059160fd0e7cf8cb2198f29297b80c8bb0f 100644 |
--- a/Source/core/fetch/Resource.cpp |
+++ b/Source/core/fetch/Resource.cpp |
@@ -364,11 +364,6 @@ |
return true; |
} |
-bool Resource::hasRightHandleCountApartFromCache(unsigned targetCount) const |
-{ |
- return m_handleCount == targetCount + memoryCache()->contains(this); |
-} |
- |
void Resource::responseReceived(const ResourceResponse& response) |
{ |
setResponse(response); |
@@ -406,17 +401,6 @@ |
m_cachedMetadata = CachedMetadata::create(dataTypeID, data, size); |
const Vector<char>& serializedData = m_cachedMetadata->serialize(); |
blink::Platform::current()->cacheMetadata(m_response.url(), m_response.responseTime(), serializedData.data(), serializedData.size()); |
-} |
- |
-bool Resource::canDelete() const |
-{ |
- return !hasClients() && !m_loader && !m_preloadCount && hasRightHandleCountApartFromCache(0) |
- && !m_protectorCount && !m_resourceToRevalidate && !m_proxyResource; |
-} |
- |
-bool Resource::hasOneHandleApartFromCache() const |
-{ |
- return hasRightHandleCountApartFromCache(1); |
} |
CachedMetadata* Resource::cachedMetadata(unsigned dataTypeID) const |
@@ -787,8 +771,6 @@ |
unlock(); |
} else if (m_handleCount == 1 && memoryCache()->contains(this)) { |
unlock(); |
- if (!hasClients()) |
- memoryCache()->prune(this); |
} |
} |