Skip to content

Commit a6ca33a

Browse files
committed
rid dead code
1 parent edd66b7 commit a6ca33a

File tree

1 file changed

+0
-30
lines changed
  • raphtory/src/db/graph/views/filter/model

1 file changed

+0
-30
lines changed

raphtory/src/db/graph/views/filter/model/mod.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -302,36 +302,6 @@ impl Filter {
302302
pub fn id_matches(&self, node_value: GidRef<'_>) -> bool {
303303
self.operator.apply_id(&self.field_value, node_value)
304304
}
305-
306-
pub fn matches_edge<'graph, G: GraphViewOps<'graph>>(
307-
&self,
308-
graph: &G,
309-
edge: EdgeStorageRef,
310-
) -> bool {
311-
let node_opt = match self.field_name.as_str() {
312-
"src" => graph.node(edge.src()),
313-
"dst" => graph.node(edge.dst()),
314-
_ => return false,
315-
};
316-
317-
match &self.field_value {
318-
FilterValue::ID(_) | FilterValue::IDSet(_) => {
319-
if let Some(node) = node_opt {
320-
self.id_matches(node.id().as_ref())
321-
} else {
322-
// No endpoint node -> no value present.
323-
match self.operator {
324-
FilterOperator::Ne | FilterOperator::IsNotIn => true,
325-
_ => false,
326-
}
327-
}
328-
}
329-
_ => {
330-
let name_opt = node_opt.map(|n| n.name());
331-
self.matches(name_opt.as_deref())
332-
}
333-
}
334-
}
335305
}
336306

337307
// Fluent Composite Filter Builder APIs

0 commit comments

Comments
 (0)