Dead code elimination

This commit is contained in:
Alan Jeffrey 2019-07-01 09:00:59 -05:00
parent 373ae0e341
commit f2a64db151

View file

@ -69,10 +69,6 @@ impl App {
mem::replace(&mut *self.event_queue.borrow_mut(), Vec::new())
}
fn has_events(&self) -> bool {
!self.event_queue.borrow().is_empty() || self.window.has_events()
}
// This function decides whether the event should be handled during `run_forever`.
fn winit_event_to_servo_event(&self, event: glutin::Event) -> glutin::ControlFlow {
match event {