Got rid of some old code

This commit is contained in:
greg 2018-09-29 12:46:52 -07:00
parent 79e02b0999
commit c24223f28e

View File

@ -87,7 +87,6 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream
}
};
//let pass_names: Vec<String> = passes.iter().map(|pass| pass.0.to_string()).collect();
let pass_descriptors = passes.iter().map(|pass| {
let name = pass.0.to_string();
let opts: Vec<String> = match &pass.1 {
@ -118,11 +117,8 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream
}
fn get_passes(&self) -> Vec<PassDescriptor> {
vec![ #(#pass_descriptors),* ]
//vec![ #(PassDescriptor { name: #pass_names.to_string(), debug_options: vec![] }),* ]
}
#doc_method_body
}
};