aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache_task.rs
diff options
context:
space:
mode:
authorAneesh Agrawal <aneeshusa@gmail.com>2015-04-07 01:20:38 -0400
committerAneesh Agrawal <aneeshusa@gmail.com>2015-04-10 06:11:31 -0400
commita1d74563077705c93144655baa3210957f53b309 (patch)
tree3f5bc49995f8bc0877a0e234d3a31e41ea106ec2 /components/net/image_cache_task.rs
parentc9a413cb6e44a51d135f2b960cc6181706218929 (diff)
downloadservo-a1d74563077705c93144655baa3210957f53b309.tar.gz
servo-a1d74563077705c93144655baa3210957f53b309.zip
Remove compositor dependency on net crate.
Move the ImageCacheTaskClient trait and impl to net_traits. Fixes #5551.
Diffstat (limited to 'components/net/image_cache_task.rs')
-rw-r--r--components/net/image_cache_task.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/components/net/image_cache_task.rs b/components/net/image_cache_task.rs
index 5897ee50fb2..a97d29b8d66 100644
--- a/components/net/image_cache_task.rs
+++ b/components/net/image_cache_task.rs
@@ -395,18 +395,6 @@ impl ImageCache {
}
}
-pub trait ImageCacheTaskClient {
- fn exit(&self);
-}
-
-impl ImageCacheTaskClient for ImageCacheTask {
- fn exit(&self) {
- let (response_chan, response_port) = channel();
- self.send(Msg::Exit(response_chan));
- response_port.recv().unwrap();
- }
-}
-
pub fn spawn_listener<F, A>(f: F) -> Sender<A>
where F: FnOnce(Receiver<A>) + Send + 'static,
A: Send + 'static