Skip to content

Commit fee2654

Browse files
committed
Remove unused fallback_expr function
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 4ed8ab3 commit fee2654

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/graph/formulas/fallback.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,6 @@ use std::collections::BTreeSet;
99

1010
use super::expr::Expr;
1111

12-
impl<N, E> ComponentGraph<N, E>
13-
where
14-
N: Node,
15-
E: Edge,
16-
{
17-
/// Returns a formula expression with fallbacks where possible for the `sum`
18-
/// of the given component ids.
19-
pub(super) fn fallback_expr(
20-
&self,
21-
component_ids: impl IntoIterator<Item = u64>,
22-
prefer_meters: bool,
23-
meter_fallback_for_meters: bool,
24-
) -> Result<Expr, Error> {
25-
FallbackExpr {
26-
prefer_meters,
27-
meter_fallback_for_meters,
28-
}
29-
.generate(self, BTreeSet::from_iter(component_ids))
30-
}
31-
}
32-
3312
pub(crate) struct FallbackExpr {
3413
pub(crate) prefer_meters: bool,
3514
pub(crate) meter_fallback_for_meters: bool,

0 commit comments

Comments
 (0)