aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-16 22:52:38 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-16 22:52:38 -0800
commitf32199ae690c169af95cb9c2c91bdf8a9fda3227 (patch)
treed170ffb2ea8b490a5321671c6d7fc9d42e22acfb /src/util.rs
parentbde4dacc791501440515c1a51ad2fcb0256cf04c (diff)
downloadalacritty-f32199ae690c169af95cb9c2c91bdf8a9fda3227.tar.gz
alacritty-f32199ae690c169af95cb9c2c91bdf8a9fda3227.zip
Remove dead code
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs15
1 files changed, 0 insertions, 15 deletions
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
-}
-