mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-06 19:22:26 +03:00
Remove dead code
This commit is contained in:
1 parent
bde4dacc79
commit
f32199ae69
2 files changed
-16
No files matched your search
@@ -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))]
|
||||
|
||||
-15
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user