Remove unused code

This commit is contained in:
Nabil Boutemeur 2019-02-21 12:05:09 +01:00 committed by GitHub
parent e2c13d1188
commit a73bb0ffc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,6 @@ pub fn try_init() -> Result<(), ()> {
let mut state: DWORD = 0; let mut state: DWORD = 0;
let mut ret: Result<(), _> = Ok(()); let mut ret: Result<(), _> = Ok(());
unsafe { unsafe {
let mut e: DWORD = 0;
if GetConsoleMode(console_out, &mut state) == 0 { if GetConsoleMode(console_out, &mut state) == 0 {
ret = Err(()); ret = Err(());
} }