Auto merge of #11293 - Ms2ger:StorageThread, r=KiChjang

Remove the pointless StorageThread alias.

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11293)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-20 06:25:13 -07:00
commit a8d28771f8
4 changed files with 10 additions and 15 deletions

View file

@ -14,9 +14,9 @@ use dom::browsingcontext::IterableContext;
use dom::event::{Event, EventBubbles, EventCancelable};
use dom::storageevent::StorageEvent;
use dom::urlhelper::UrlHelper;
use ipc_channel::ipc;
use ipc_channel::ipc::{self, IpcSender};
use net_traits::IpcSend;
use net_traits::storage_thread::{StorageThread, StorageThreadMsg, StorageType};
use net_traits::storage_thread::{StorageThreadMsg, StorageType};
use script_thread::{MainThreadRunnable, ScriptThread};
use task_source::dom_manipulation::DOMManipulationTask;
use url::Url;
@ -46,7 +46,7 @@ impl Storage {
global_ref.get_url()
}
fn get_storage_thread(&self) -> StorageThread {
fn get_storage_thread(&self) -> IpcSender<StorageThreadMsg> {
let global_root = self.global();
let global_ref = global_root.r();
global_ref.as_window().resource_threads().sender()