Merge adjacent identical impl sections

Prior to #7416 and #7401, many of these `impl` sections were not
identical
This commit is contained in:
Corey Farwell 2015-08-28 09:52:53 -04:00
parent 6431e8da43
commit 5ccb0d43ef
16 changed files with 0 additions and 52 deletions

View file

@ -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);