aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 714c6857d9c..d6a8481afb3 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -822,23 +822,6 @@ impl ScriptThreadFactory for ScriptThread {
}
impl ScriptThread {
- pub(crate) fn get_any_layout_chan() -> Option<Sender<Msg>> {
- SCRIPT_THREAD_ROOT.with(|root| {
- let script_thread = match root.get() {
- Some(s) => unsafe { &*s },
- None => return None,
- };
- script_thread
- .documents
- .borrow()
- .map
- .values()
- .next()
- .map(|d| d.window().layout_chan())
- .cloned()
- })
- }
-
pub fn runtime_handle() -> ParentRuntime {
SCRIPT_THREAD_ROOT.with(|root| {
let script_thread = unsafe { &*root.get().unwrap() };