Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Chudíček committed Oct 7, 2023
1 parent 529f57d commit ea12392
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/prototype/update_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,6 @@ fn process_output_var_name_item<XR: XmlReader<BR>, BR: BufRead>(
Ok(item)
}

/// currently only one output for given update function is supported
/// but // todo; requested to generalize
/// expects the xml to be at the element `<qual:listOfOutputs>` when this fction called
fn get_target_var_name<BR: BufRead>(
_xml: &mut EventReader<BR>,
) -> Result<String, Box<dyn std::error::Error>> {
// let xd = expect_opening_of("output", xml)?;
// // todo read the thing
// let lol = expect_closure_of("output", xml)?;
unimplemented!();
}

fn get_default_and_list_of_terms<T: FromStr, XR: XmlReader<BR>, BR: BufRead>(
xml: &mut XR,
) -> Result<(T, Vec<(T, Expression<T>)>), Box<dyn std::error::Error>> {
Expand All @@ -155,28 +143,9 @@ fn get_default_and_list_of_terms<T: FromStr, XR: XmlReader<BR>, BR: BufRead>(
xml,
)?;

// let xd = other_process_list(
// "listOfFunctionTerms",
// "functionTerm",
// process_function_term_item,
// xml,
// );

Ok((default_val, values_and_expressions))
}

// fn process_list<XR: XmlReader<BR>, BR: BufRead, Fun, Res>(
// list_name: &str,
// item_name: &str,
// processing_fn: Fun,
// xml: &mut XR,
// ) -> Result<Vec<Res>, Box<dyn std::error::Error>>
// where
// Fun: Fn(&mut XR, StartElementWrapper) -> Result<Res, Box<dyn std::error::Error>>,
// {
// unimplemented!();
// }

fn process_function_term_item<T: FromStr, XR: XmlReader<BR>, BR: BufRead>(
xml: &mut XR,
current: StartElementWrapper,
Expand Down

0 comments on commit ea12392

Please sign in to comment.