mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove GlobalRef::get_worker_id
This commit is contained in:
parent
522734de22
commit
e2dfcb658b
2 changed files with 6 additions and 9 deletions
|
@ -140,14 +140,6 @@ impl<'a> GlobalRef<'a> {
|
|||
self.resource_threads().sender()
|
||||
}
|
||||
|
||||
/// Get the worker's id.
|
||||
pub fn get_worker_id(&self) -> Option<WorkerId> {
|
||||
match *self {
|
||||
GlobalRef::Window(_) => None,
|
||||
GlobalRef::Worker(ref worker) => Some(worker.get_worker_id()),
|
||||
}
|
||||
}
|
||||
|
||||
/// Get next worker id.
|
||||
pub fn get_next_worker_id(&self) -> WorkerId {
|
||||
match *self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue