Kill Runnable::is_cancelled ⚔️

This commit is contained in:
Anthony Ramine 2017-09-07 14:38:53 +02:00
parent c68bc0c145
commit 17a1dd9385
3 changed files with 21 additions and 19 deletions

View file

@ -71,8 +71,6 @@ impl fmt::Debug for DOMManipulationTask {
impl DOMManipulationTask {
pub fn handle_task(self, script_thread: &ScriptThread) {
if !self.0.is_cancelled() {
self.0.main_thread_handler(script_thread);
}
self.0.main_thread_handler(script_thread);
}
}

View file

@ -62,8 +62,6 @@ impl fmt::Debug for UserInteractionTask {
impl UserInteractionTask {
pub fn handle_task(self, script_thread: &ScriptThread) {
if !self.0.is_cancelled() {
self.0.main_thread_handler(script_thread);
}
self.0.main_thread_handler(script_thread);
}
}