From 1222db62aa37c6e2f55aba3633467ff9bb3d68b0 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 9 Dec 2016 12:36:40 -1000 Subject: [PATCH] Remove Request::done. It does not appear to be used at all. --- components/net/fetch/methods.rs | 3 --- components/net_traits/request.rs | 2 -- 2 files changed, 5 deletions(-) diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index ebff48a80ba..052e5e31ced 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -378,9 +378,6 @@ pub fn main_fetch(request: Rc, } } - // Step 23 - request.done.set(true); - // Step 24 if let Some(ref mut target) = *target { target.process_response_eof(&response); diff --git a/components/net_traits/request.rs b/components/net_traits/request.rs index 3c780a2c5d5..05f802ea183 100644 --- a/components/net_traits/request.rs +++ b/components/net_traits/request.rs @@ -208,7 +208,6 @@ pub struct Request { pub url_list: RefCell>, pub redirect_count: Cell, pub response_tainting: Cell, - pub done: Cell, } impl Request { @@ -246,7 +245,6 @@ impl Request { url_list: RefCell::new(vec![url]), redirect_count: Cell::new(0), response_tainting: Cell::new(ResponseTainting::Basic), - done: Cell::new(false) } }