Skip to content

Commit 0ed56f8

Browse files
committed
remove unused functions
1 parent 19e7f01 commit 0ed56f8

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

crates/polars-lazy/src/tests/optimization_checks.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,34 +44,6 @@ pub(crate) fn predicate_at_all_scans(q: LazyFrame) -> bool {
4444
})
4545
}
4646

47-
#[cfg(feature = "streaming")]
48-
pub(crate) fn is_pipeline(q: LazyFrame) -> bool {
49-
let (mut expr_arena, mut lp_arena) = get_arenas();
50-
let lp = q.optimize(&mut lp_arena, &mut expr_arena).unwrap();
51-
matches!(
52-
lp_arena.get(lp),
53-
IR::MapFunction {
54-
function: FunctionIR::Pipeline { .. },
55-
..
56-
}
57-
)
58-
}
59-
60-
#[cfg(feature = "streaming")]
61-
pub(crate) fn has_pipeline(q: LazyFrame) -> bool {
62-
let (mut expr_arena, mut lp_arena) = get_arenas();
63-
let lp = q.optimize(&mut lp_arena, &mut expr_arena).unwrap();
64-
(&lp_arena).iter(lp).any(|(_, lp)| {
65-
matches!(
66-
lp,
67-
IR::MapFunction {
68-
function: FunctionIR::Pipeline { .. },
69-
..
70-
}
71-
)
72-
})
73-
}
74-
7547
#[cfg(any(feature = "parquet", feature = "csv"))]
7648
fn slice_at_scan(q: LazyFrame) -> bool {
7749
let (mut expr_arena, mut lp_arena) = get_arenas();

crates/polars-mem-engine/src/planner/lp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,13 @@ fn create_physical_plan_impl(
485485
predicate_has_windows: state.has_windows,
486486
}))
487487
},
488+
#[allow(unreachable_patterns)]
488489
_ => {
489490
let build_func = build_streaming_executor
490491
.expect("invalid build. Missing feature new-streaming");
491492
return build_func(root, lp_arena, expr_arena);
492493
},
494+
#[allow(unreachable_patterns)]
493495
_ => unreachable!(),
494496
}
495497
},

0 commit comments

Comments
 (0)