aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
-rw-r--r--src/util.rs15
2 files changed, 0 insertions, 16 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f014d833..d9e1d063 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -16,7 +16,6 @@
#![feature(range_contains)]
#![feature(inclusive_range_syntax)]
#![feature(drop_types_in_const)]
-#![feature(unicode)]
#![feature(step_trait)]
#![feature(plugin)]
#![cfg_attr(feature = "clippy", plugin(clippy))]
diff --git a/src/util.rs b/src/util.rs
index 0607ff61..a5a4807e 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -29,18 +29,3 @@ pub mod thread {
pub use ::std::thread::*;
}
-
-pub fn encode_char(c: char) -> Vec<u8> {
- let mut buf = Vec::with_capacity(4);
- unsafe {
- buf.set_len(4);
- let len = {
- let s = c.encode_utf8(&mut buf[..]);
- s.len()
- };
- buf.set_len(len);
- }
-
- buf
-}
-