Remove broken ctrlc helper
This commit is contained in:
parent
e3113caa72
commit
5725d1bb34
|
@ -36,7 +36,6 @@ gl_generator = "0.7"
|
||||||
slog-term = "2.3"
|
slog-term = "2.3"
|
||||||
slog-async = "2.2"
|
slog-async = "2.2"
|
||||||
rand = "0.3"
|
rand = "0.3"
|
||||||
ctrlc = { version = "3.0", features = ["termination"] }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["backend_winit", "backend_drm", "backend_libinput", "backend_udev", "renderer_glium", "backend_session_logind"]
|
default = ["backend_winit", "backend_drm", "backend_libinput", "backend_udev", "renderer_glium", "backend_session_logind"]
|
||||||
|
|
|
@ -15,8 +15,6 @@ extern crate slog;
|
||||||
extern crate slog_async;
|
extern crate slog_async;
|
||||||
extern crate slog_term;
|
extern crate slog_term;
|
||||||
|
|
||||||
extern crate ctrlc;
|
|
||||||
|
|
||||||
mod helpers;
|
mod helpers;
|
||||||
|
|
||||||
use drm::control::{Device as ControlDevice, ResourceInfo};
|
use drm::control::{Device as ControlDevice, ResourceInfo};
|
||||||
|
@ -258,10 +256,6 @@ fn main() {
|
||||||
let (session, mut notifier) = AutoSession::new(log.clone()).unwrap();
|
let (session, mut notifier) = AutoSession::new(log.clone()).unwrap();
|
||||||
|
|
||||||
let running = Arc::new(AtomicBool::new(true));
|
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)));
|
let pointer_location = Rc::new(RefCell::new((0.0, 0.0)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue