Remove commented out code
This commit is contained in:
@@ -41,40 +41,6 @@ fn store_operator_set_in_cache(cache_key: PermutationCacheKey, cache_value: Hash
|
|||||||
.insert(cache_key, cache_value);
|
.insert(cache_key, cache_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// fn create_operator_set_recurse(
|
|
||||||
// operators_permutation_set: &mut HashSet<Vec<Op>>,
|
|
||||||
// operators: Vec<Op>,
|
|
||||||
// ) {
|
|
||||||
// operators_permutation_set.insert(operators.clone());
|
|
||||||
// if !operators.contains(&Op::Add) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// for i in 0..operators.len() {
|
|
||||||
// if operators[i] == Op::Multiply {
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// let mut new_operators = operators.clone();
|
|
||||||
// new_operators[i] = Op::Multiply;
|
|
||||||
// create_operator_set_recurse(operators_permutation_set, new_operators);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// pub fn create_operator_set(num_of_operators: usize) -> HashSet<Vec<Op>> {
|
|
||||||
// // Check cache
|
|
||||||
// if let Some(cached_value) = check_operator_set_cache(num_of_operators) {
|
|
||||||
// return cached_value.clone();
|
|
||||||
// }
|
|
||||||
|
|
||||||
// let mut operator_sets: HashSet<Vec<Op>> = HashSet::new();
|
|
||||||
// create_operator_set_recurse(&mut operator_sets, vec![Op::Add; num_of_operators]);
|
|
||||||
|
|
||||||
// // Store value in cache
|
|
||||||
// store_operator_set_in_cache(num_of_operators, operator_sets.clone());
|
|
||||||
|
|
||||||
// operator_sets
|
|
||||||
// }
|
|
||||||
|
|
||||||
fn create_permutations_recurse(
|
fn create_permutations_recurse(
|
||||||
values: &HashSet<Op>,
|
values: &HashSet<Op>,
|
||||||
len: usize,
|
len: usize,
|
||||||
|
|||||||
Reference in New Issue
Block a user