diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-11-03 11:53:04 -0800 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-11-03 12:01:09 -0800 |
commit | 193d8f2dba94c3b8edad34cf9f40cdf27daaeb63 (patch) | |
tree | a1910cf12ae9270b7d86d166c646df5797342bb9 | |
parent | db1163b1eceb5fef6463c4425e99d974a85a50a8 (diff) | |
download | servo-193d8f2dba94c3b8edad34cf9f40cdf27daaeb63.tar.gz servo-193d8f2dba94c3b8edad34cf9f40cdf27daaeb63.zip |
Remove dead load_sync function.
-rw-r--r-- | components/script/document_loader.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index 2cfa9096d9c..c9241956bb5 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -7,7 +7,7 @@ use msg::constellation_msg::{PipelineId}; use net_traits::AsyncResponseTarget; -use net_traits::{Metadata, PendingAsyncLoad, ResourceTask, load_whole_resource}; +use net_traits::{PendingAsyncLoad, ResourceTask}; use std::sync::Arc; use url::Url; @@ -78,14 +78,6 @@ impl DocumentLoader { pending.load_async(listener) } - /// Create, initiate, and await the response for a new network request. - pub fn load_sync(&mut self, load: LoadType) -> Result<(Metadata, Vec<u8>), String> { - self.blocking_loads.push(load.clone()); - let result = load_whole_resource(&self.resource_task, load.url().clone()); - self.finish_load(load); - result - } - /// Mark an in-progress network request complete. pub fn finish_load(&mut self, load: LoadType) { let idx = self.blocking_loads.iter().position(|unfinished| *unfinished == load); |