diff options
author | est31 <MTest31@outlook.com> | 2019-06-02 07:10:40 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2019-06-02 07:12:26 +0200 |
commit | 8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4 (patch) | |
tree | f52105b50b51f3d32eaec904369f0b24bee62290 /components/script/document_loader.rs | |
parent | 8dc7a25893cbe9a2c958966618d28757201899b6 (diff) | |
download | servo-8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4.tar.gz servo-8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4.zip |
Remove unused code from script* crates
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r-- | components/script/document_loader.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index ef4075d6599..ef60cbc2a6c 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -25,19 +25,6 @@ pub enum LoadType { Media, } -impl LoadType { - fn url(&self) -> Option<&ServoUrl> { - match *self { - LoadType::Image(ref url) | - LoadType::Script(ref url) | - LoadType::Subframe(ref url) | - LoadType::Stylesheet(ref url) | - LoadType::PageSource(ref url) => Some(url), - LoadType::Media => None, - } - } -} - /// Canary value ensuring that manually added blocking loads (ie. ones that weren't /// created via DocumentLoader::fetch_async) are always removed by the time /// that the owner is destroyed. @@ -67,11 +54,6 @@ impl LoadBlocker { } *blocker = None; } - - /// Return the url associated with this load. - pub fn url(&self) -> Option<&ServoUrl> { - self.load.as_ref().and_then(LoadType::url) - } } impl Drop for LoadBlocker { |