From 5725d1bb348d3b323ab1535ff9aa4933678c4e6a Mon Sep 17 00:00:00 2001 From: Drakulix Date: Tue, 20 Feb 2018 17:35:19 +0100 Subject: [PATCH] Remove broken ctrlc helper --- Cargo.toml | 1 - examples/udev.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a4ae995..7b77650 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,6 @@ gl_generator = "0.7" slog-term = "2.3" slog-async = "2.2" rand = "0.3" -ctrlc = { version = "3.0", features = ["termination"] } [features] default = ["backend_winit", "backend_drm", "backend_libinput", "backend_udev", "renderer_glium", "backend_session_logind"] diff --git a/examples/udev.rs b/examples/udev.rs index 4f11611..d8139db 100644 --- a/examples/udev.rs +++ b/examples/udev.rs @@ -15,8 +15,6 @@ extern crate slog; extern crate slog_async; extern crate slog_term; -extern crate ctrlc; - mod helpers; use drm::control::{Device as ControlDevice, ResourceInfo}; @@ -258,10 +256,6 @@ fn main() { let (session, mut notifier) = AutoSession::new(log.clone()).unwrap(); let running = Arc::new(AtomicBool::new(true)); - let r = running.clone(); - ctrlc::set_handler(move || { - r.store(false, Ordering::SeqCst); - }).expect("Error setting Ctrl-C handler"); let pointer_location = Rc::new(RefCell::new((0.0, 0.0)));