diff options
| author | Teddy Wing | 2018-10-27 07:19:59 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-27 07:19:59 +0200 |
| commit | 48c7bc66cc0403d11a2c5565193c14c8381e92e2 (patch) | |
| tree | 2b1020ad73383e23ff78ce856edb31cea8f93756 | |
| parent | 1f4222ba73cdc37642672639ba24ce42ccb3a2b8 (diff) | |
| download | dome-key-map-48c7bc66cc0403d11a2c5565193c14c8381e92e2.tar.bz2 | |
Delete unused imports
| -rw-r--r-- | src/cocoa_bridge.rs | 10 | ||||
| -rw-r--r-- | src/config.rs | 1 | ||||
| -rw-r--r-- | src/key_code.rs | 18 | ||||
| -rw-r--r-- | src/lib.rs | 3 | ||||
| -rw-r--r-- | src/parser.rs | 2 |
5 files changed, 2 insertions, 32 deletions
diff --git a/src/cocoa_bridge.rs b/src/cocoa_bridge.rs index 4b1bd0b..0c0350a 100644 --- a/src/cocoa_bridge.rs +++ b/src/cocoa_bridge.rs @@ -1,14 +1,10 @@ use std::env; use std::ffi::{CStr, CString, OsString}; use std::fs; -use std::mem; use std::process::Command; use std::ptr; use std::slice; -use autopilot::key::type_string; -// use cocoa::base::nil; -// use cocoa::foundation::{NSArray, NSAutoreleasePool, NSDictionary}; use libc::{c_char, size_t}; use stderrlog; use xdg; @@ -357,9 +353,3 @@ pub extern "C" fn config_free(ptr: *mut Config) { pub extern "C" fn do_trial() { trial::do_trial(); } - - -mod tests { - use super::*; - -} diff --git a/src/config.rs b/src/config.rs index 01cc379..bcaf714 100644 --- a/src/config.rs +++ b/src/config.rs @@ -9,7 +9,6 @@ use toml; use xdg; use errors::*; -use prefix_println; type Milliseconds = u16; diff --git a/src/key_code.rs b/src/key_code.rs index 53d596d..c25f0f3 100644 --- a/src/key_code.rs +++ b/src/key_code.rs @@ -1,20 +1,4 @@ -use cocoa::appkit::{ - NSEvent, - NSEventModifierFlags, - NSEventSubtype::NSScreenChangedEventType, - NSEventType::NSSystemDefined, -}; -use cocoa::base::{id, nil}; -use cocoa::foundation::NSPoint; -use core_graphics::event::{ - CGEvent, - CGEventFlags, - // CGEventPost, - CGEventRef, - CGEventTapLocation, - CGKeyCode, - KeyCode, -}; +use core_graphics::event::CGEventFlags; // pub struct KeyCode { // } @@ -20,9 +20,6 @@ extern crate log; extern crate magic_crypt; #[macro_use] -extern crate objc; - -#[macro_use] extern crate quick_error; #[macro_use] diff --git a/src/parser.rs b/src/parser.rs index 7ccaf6b..0f38fbe 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use autopilot; -use autopilot::key::{Flag, KeyCodeConvertible}; +use autopilot::key::Flag; use combine::*; use combine::easy::Errors as CombineErrors; use combine::parser::choice::or; |
