From 44cba989b2449a2f6bb3295acedf991faa5e2586 Mon Sep 17 00:00:00 2001 From: Kaya Gokalp Date: Sat, 15 Jun 2024 14:21:10 -0700 Subject: [PATCH] remove unused generation function --- fluido-generation/src/lib.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/fluido-generation/src/lib.rs b/fluido-generation/src/lib.rs index 321a2d2..bdb6d04 100644 --- a/fluido-generation/src/lib.rs +++ b/fluido-generation/src/lib.rs @@ -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 { - 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) -> String { // Find the smallest volume in the expression let mut min_volume: Option = None;