mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Merge adjacent identical impl
sections
Prior to #7416 and #7401, many of these `impl` sections were not identical
This commit is contained in:
parent
6431e8da43
commit
5ccb0d43ef
16 changed files with 0 additions and 52 deletions
|
@ -187,9 +187,7 @@ impl DedicatedWorkerGlobalScope {
|
|||
own_sender, receiver);
|
||||
DedicatedWorkerGlobalScopeBinding::Wrap(runtime.cx(), scope)
|
||||
}
|
||||
}
|
||||
|
||||
impl DedicatedWorkerGlobalScope {
|
||||
pub fn run_worker_scope(init: WorkerGlobalScopeInit,
|
||||
worker_url: Url,
|
||||
id: PipelineId,
|
||||
|
@ -242,10 +240,7 @@ impl DedicatedWorkerGlobalScope {
|
|||
}, reporter_name, parent_sender, CommonScriptMsg::CollectReports);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl DedicatedWorkerGlobalScope {
|
||||
pub fn script_chan(&self) -> Box<ScriptChan + Send> {
|
||||
box WorkerThreadWorkerChan {
|
||||
sender: self.own_sender.clone(),
|
||||
|
@ -269,10 +264,7 @@ impl DedicatedWorkerGlobalScope {
|
|||
pub fn process_event(&self, msg: CommonScriptMsg) {
|
||||
self.handle_script_event(WorkerScriptMsg::Common(msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl DedicatedWorkerGlobalScope {
|
||||
#[allow(unsafe_code)]
|
||||
fn receive_event(&self) -> Result<MixedMessage, RecvError> {
|
||||
let scope = WorkerGlobalScopeCast::from_ref(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue