Commit 892b284a authored by yhirano's avatar yhirano Committed by Commit bot

Remove Resource::CurrentAge and Resource::FreshnessLifetime

They are not used by anyone.

BUG=None

Review-Url: https://codereview.chromium.org/2846793002
Cr-Commit-Position: refs/heads/master@{#467906}
parent ff3d745c
......@@ -493,10 +493,6 @@ static double CurrentAge(const ResourceResponse& response,
return corrected_received_age + resident_time;
}
double Resource::CurrentAge() const {
return blink::CurrentAge(GetResponse(), response_timestamp_);
}
static double FreshnessLifetime(const ResourceResponse& response,
double response_timestamp) {
#if !OS(ANDROID)
......@@ -528,10 +524,6 @@ static double FreshnessLifetime(const ResourceResponse& response,
return 0;
}
double Resource::FreshnessLifetime() const {
return blink::FreshnessLifetime(GetResponse(), response_timestamp_);
}
static bool CanUseResponse(const ResourceResponse& response,
double response_timestamp) {
if (response.IsNull())
......
......@@ -282,9 +282,6 @@ class PLATFORM_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
}
bool MustRefetchDueToIntegrityMetadata(const FetchParameters&) const;
double CurrentAge() const;
double FreshnessLifetime() const;
bool IsAlive() const { return is_alive_; }
void SetCacheIdentifier(const String& cache_identifier) {
......
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