Commit 43e0fcc3 authored by Matthew Nicholson's avatar Matthew Nicholson Committed by MovingtoMars
Browse files

remove KeyMap implementation for Editor

It is now unused.
parent fe0d8100
......@@ -7,7 +7,6 @@ use Context;
use Buffer;
use event::*;
use util;
use KeyMap;
/// Represents the position of the cursor relative to words in the buffer.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
......@@ -640,16 +639,6 @@ impl<'a, W: Write> From<Editor<'a, W>> for String {
}
}
impl<'a, W: Write> KeyMap<'a, W, Editor<'a, W>> for Editor<'a, W> {
fn handle_key(&mut self, key: Key, handler: &mut EventHandler<W>) -> io::Result<bool> {
self.handle_key(key, handler)
}
fn editor(&mut self) -> &mut Editor<'a, W> {
self
}
}
#[cfg(test)]
mod tests {
use super::*;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment