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/script_thread.rs | |
parent | 8dc7a25893cbe9a2c958966618d28757201899b6 (diff) | |
download | servo-8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4.tar.gz servo-8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4.zip |
Remove unused code from script* crates
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 3d8d5bb1acc..f284e14dd0c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -451,20 +451,12 @@ impl Documents { .map(|ref doc| DomRoot::from_ref(&**doc)) } - pub fn is_empty(&self) -> bool { - self.map.is_empty() - } - pub fn find_document(&self, pipeline_id: PipelineId) -> Option<DomRoot<Document>> { self.map .get(&pipeline_id) .map(|doc| DomRoot::from_ref(&**doc)) } - pub fn len(&self) -> usize { - self.map.len() - } - pub fn find_window(&self, pipeline_id: PipelineId) -> Option<DomRoot<Window>> { self.find_document(pipeline_id) .map(|doc| DomRoot::from_ref(doc.window())) @@ -824,13 +816,6 @@ impl ScriptThread { }) } - pub fn invoke_perform_a_microtask_checkpoint() { - SCRIPT_THREAD_ROOT.with(|root| { - let script_thread = unsafe { &*root.get().unwrap() }; - script_thread.perform_a_microtask_checkpoint() - }) - } - pub fn page_headers_available( id: &PipelineId, metadata: Option<Metadata>, |