aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-11-22 04:06:58 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-11-22 04:06:58 -0300
commit47fc031feeddc955e6c7c43410613c75e3370e96 (patch)
tree3838e05370fc56ec432372bd07822d070dc70f08
parent13310ee7dce177a24252970f607c08f3d658e676 (diff)
downloaddotwm-47fc031feeddc955e6c7c43410613c75e3370e96.tar.gz
Cleanup.
Nom it's not needed for now.
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs11
3 files changed, 0 insertions, 18 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 646922b..eabeb47 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,7 +3,6 @@ name = "dotwm"
version = "0.1.0"
dependencies = [
"libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "nom 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"unix_socket 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"x11 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -24,11 +23,6 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
-name = "nom"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-
-[[package]]
name = "pkg-config"
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index d3f709f..66e2b19 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,6 @@ authors = ["Matias Linares <matiaslina@openmailbox.org>"]
[dependencies]
libc = "0.2.*"
unix_socket = "*"
-nom = "*"
[dependencies.x11]
version = "*"
diff --git a/src/main.rs b/src/main.rs
index a7d8077..d871288 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,8 +3,6 @@
extern crate libc;
extern crate x11;
extern crate unix_socket;
-#[macro_use]
-extern crate nom;
pub mod safe_x11;
pub mod command;
@@ -34,15 +32,6 @@ fn main() {
let mut bindings: BindingHash = HashMap::new();
let x11_fd = x11_event::x11_fd(dotwm.display);
- //add_binding(&mut dotwm,&mut bindings, keysym::XK_Return, xlib::Mod4Mask, exec,
- // &["xterm"]);
- //add_binding(&mut dotwm,&mut bindings, keysym::XK_p, xlib::Mod4Mask, exec,
- // &["dmenu_run"]);
- //add_binding(&mut dotwm,&mut bindings, keysym::XK_h, xlib::Mod4Mask, move_win, &["-10", "0"]);
- //add_binding(&mut dotwm,&mut bindings, keysym::XK_j, xlib::Mod4Mask, move_win, &["0", "10"]);
- //add_binding(&mut dotwm,&mut bindings, keysym::XK_k, xlib::Mod4Mask, move_win, &["0", "-10"]);
- //add_binding(&mut dotwm,&mut bindings, keysym::XK_l, xlib::Mod4Mask, move_win, &["10", "0"]);
-
// Resize
add_binding(&mut dotwm,&mut bindings, keysym::XK_h, xlib::Mod4Mask | xlib::ControlMask,
resize_win, &["-10", "0"]);