Remove dead codes
This commit is contained in:
parent
c06dd0e0af
commit
1755408d1a
67 changed files with 150 additions and 1130 deletions
|
@ -192,10 +192,6 @@ pub fn opt_str2(maybestr: Option<~str>) -> ~str {
|
|||
match maybestr { None => ~"(none)", Some(s) => { s } }
|
||||
}
|
||||
|
||||
pub fn str_opt(maybestr: ~str) -> Option<~str> {
|
||||
if maybestr != ~"(none)" { Some(maybestr) } else { None }
|
||||
}
|
||||
|
||||
pub fn str_mode(s: ~str) -> mode {
|
||||
match s {
|
||||
~"compile-fail" => mode_compile_fail,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue