servo: Merge #13678 - Remove unused trait method (from frewsxcv:unused-trait-method); r=KiChjang
authorCorey Farwell <coreyf@rwell.org>
Mon, 10 Oct 2016 16:29:25 -0500
changeset 339878 5b431b765a37a97f7dca63a23e3674bd6950dee1
parent 339877 f1bc617cf9efa95d606489eabca774937ee314a0
child 339879 860b1202ced2c81b8571b42e10d3099c3bf638aa
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersKiChjang
servo: Merge #13678 - Remove unused trait method (from frewsxcv:unused-trait-method); r=KiChjang Source-Repo: https://github.com/servo/servo Source-Revision: f43a14ea687166da92bf23bdd61b546a74288d04
servo/components/net_traits/request.rs
--- a/servo/components/net_traits/request.rs
+++ b/servo/components/net_traits/request.rs
@@ -271,20 +271,16 @@ impl Request {
     pub fn url(&self) -> Url {
         self.url_list.borrow().first().unwrap().clone()
     }
 
     pub fn current_url(&self) -> Url {
         self.url_list.borrow().last().unwrap().clone()
     }
 
-    pub fn current_url_string(&self) -> String {
-        self.url_list.borrow().last().unwrap().to_string()
-    }
-
     pub fn is_navigation_request(&self) -> bool {
         self.destination == Destination::Document
     }
 
     pub fn is_subresource_request(&self) -> bool {
         match self.destination {
             Destination::Font | Destination::Image | Destination::Manifest
                 | Destination::Media | Destination::Script