Remove unused code

Closes #467
This commit is contained in:
Yehuda Katz
2019-09-01 23:11:05 -07:00
parent 246c9c06dc
commit 7fa09f59c2
28 changed files with 30 additions and 318 deletions

View File

@ -323,12 +323,6 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
LineResult::Break => {
break;
}
LineResult::FatalError(_, err) => {
context.with_host(|host| {
host.stdout(&format!("A surprising fatal error occurred.\n{:?}", err))
});
}
}
ctrlcbreak = false;
}
@ -344,9 +338,6 @@ enum LineResult {
Error(String, ShellError),
CtrlC,
Break,
#[allow(unused)]
FatalError(String, ShellError),
}
async fn process_line(readline: Result<String, ReadlineError>, ctx: &mut Context) -> LineResult {