Kill unused items in schala-repl
This commit is contained in:
parent
635887f7a5
commit
0de504eb9e
@ -100,10 +100,10 @@ impl FinishedComputation {
|
|||||||
let color = artifact.text_color;
|
let color = artifact.text_color;
|
||||||
let stage = stage.color(color).bold();
|
let stage = stage.color(color).bold();
|
||||||
let output = artifact.debug_output.color(color);
|
let output = artifact.debug_output.color(color);
|
||||||
write!(&mut buf, "{}: {}\n", stage, output);
|
write!(&mut buf, "{}: {}\n", stage, output).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write!(&mut buf, "{}", output);
|
write!(&mut buf, "{}", output).unwrap();
|
||||||
buf
|
buf
|
||||||
}
|
}
|
||||||
Err(ref s) => format!("{} {}", "Error: ".red().bold(), s)
|
Err(ref s) => format!("{} {}", "Error: ".red().bold(), s)
|
||||||
@ -111,7 +111,7 @@ impl FinishedComputation {
|
|||||||
}
|
}
|
||||||
pub fn to_noninteractive(&self) -> Option<String> {
|
pub fn to_noninteractive(&self) -> Option<String> {
|
||||||
match self.text_output {
|
match self.text_output {
|
||||||
Ok(ref s) => None,
|
Ok(_) => None,
|
||||||
Err(ref s) => Some(format!("{} {}", "Error: ".red().bold(), s))
|
Err(ref s) => Some(format!("{} {}", "Error: ".red().bold(), s))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -154,7 +154,7 @@ pub trait ProgrammingLanguageInterface {
|
|||||||
}
|
}
|
||||||
/* old */
|
/* old */
|
||||||
|
|
||||||
fn execute(&mut self, input: &str, eval_options: &EvalOptions) -> FinishedComputation {
|
fn execute(&mut self, _input: &str, _eval_options: &EvalOptions) -> FinishedComputation {
|
||||||
FinishedComputation { artifacts: HashMap::new(), text_output: Err(format!("REPL evaluation not implemented")) }
|
FinishedComputation { artifacts: HashMap::new(), text_output: Err(format!("REPL evaluation not implemented")) }
|
||||||
}
|
}
|
||||||
fn get_language_name(&self) -> String;
|
fn get_language_name(&self) -> String;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
use rocket;
|
use rocket;
|
||||||
use rocket::State;
|
use rocket::State;
|
||||||
use rocket::response::Content;
|
use rocket::response::Content;
|
||||||
use rocket::response::NamedFile;
|
|
||||||
use rocket::http::ContentType;
|
use rocket::http::ContentType;
|
||||||
use rocket_contrib::Json;
|
use rocket_contrib::Json;
|
||||||
use language::{ProgrammingLanguageInterface, EvalOptions};
|
use language::{ProgrammingLanguageInterface, EvalOptions};
|
||||||
|
Loading…
Reference in New Issue
Block a user