File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
raphtory/src/db/graph/views/filter/model Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments