aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/image_cache.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-02-21 14:51:45 -0500
committerJosh Matthews <josh@joshmatthews.net>2020-04-17 11:59:00 -0400
commitd4e85f9a904d4469b65bf73f7e465464eddb5cec (patch)
tree624afffcc581becb5cc8d23200ce762ade781d6d /components/net_traits/image_cache.rs
parent2742fd2beaad4dafd1caca0e78c5b8cce77fa2e4 (diff)
downloadservo-d4e85f9a904d4469b65bf73f7e465464eddb5cec.tar.gz
servo-d4e85f9a904d4469b65bf73f7e465464eddb5cec.zip
Don't continually re-request completed requests that had load errors.
Diffstat (limited to 'components/net_traits/image_cache.rs')
-rw-r--r--components/net_traits/image_cache.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/components/net_traits/image_cache.rs b/components/net_traits/image_cache.rs
index 570c06e302d..9c5ca0b1455 100644
--- a/components/net_traits/image_cache.rs
+++ b/components/net_traits/image_cache.rs
@@ -73,14 +73,6 @@ pub enum ImageResponse {
None,
}
-/// The current state of an image in the cache.
-#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
-pub enum ImageState {
- Pending(PendingImageId),
- LoadError,
- NotRequested(PendingImageId),
-}
-
/// The unique id for an image that has previously been requested.
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, MallocSizeOf, PartialEq, Serialize)]
pub struct PendingImageId(pub u64);