aboutsummaryrefslogtreecommitdiffstats
path: root/ports/glutin/app.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2019-07-01 09:00:59 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2019-07-01 09:00:59 -0500
commitf2a64db15113d0b531fd4fcfc389d96790817cf9 (patch)
tree5c0565efe8bba9a79cd1ff2abcbfb0529ae6088b /ports/glutin/app.rs
parent373ae0e341c18f8380c8031075d201a59ae9180d (diff)
downloadservo-f2a64db15113d0b531fd4fcfc389d96790817cf9.tar.gz
servo-f2a64db15113d0b531fd4fcfc389d96790817cf9.zip
Dead code elimination
Diffstat (limited to 'ports/glutin/app.rs')
-rw-r--r--ports/glutin/app.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/ports/glutin/app.rs b/ports/glutin/app.rs
index 8292f5912be..c8fc807f4f2 100644
--- a/ports/glutin/app.rs
+++ b/ports/glutin/app.rs
@@ -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 {