Skip to content

Commit

Permalink
remove unused generation function
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp committed Jun 15, 2024
1 parent 19a905a commit 44cba98
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions fluido-generation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,22 +371,6 @@ fn concentration_valid(
}
}

/// Generate all possible fluids with given start and end with step sizes.
pub fn generate_all_fluids() -> Vec<Fluid> {
let epsilon = Concentration::EPSILON;
let end = (1.0 / epsilon) as usize;

let mut result = Vec::with_capacity(end);
for i in 0..end {
let concentrationtion = Concentration::new(i as i64);
let volume = 1.0.into();
let fluid = Fluid::new(concentrationtion, volume);
result.push(fluid);
}

result
}

fn normalize_expr_by_min_volume(expr: &RecExpr<MixLang>) -> String {
// Find the smallest volume in the expression
let mut min_volume: Option<f64> = None;
Expand Down

0 comments on commit 44cba98

Please sign in to comment.