Skip to content

Commit

Permalink
Remove old method.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jul 27, 2023
1 parent a23ba88 commit 283e2ba
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,6 @@ public bool Trigger(EnrichedEvent @event, RuleTrigger trigger)
return MatchesAnySchema(typed.Schemas, @event);
}

private bool TriggerReferences(EnrichedEvent @event, Rule rule)
{
// This method is only called once per event, therefore we could also have other rules.
if (rule.Trigger is not ContentChangedTriggerV2 contentTrigger)
{
return false;
}

return MatchesAnySchema(contentTrigger.ReferencedSchemas, @event);
}

private bool MatchesAnySchema(ReadonlyList<SchemaCondition>? schemas, EnrichedEvent @event)
{
if (schemas == null)
Expand Down

0 comments on commit 283e2ba

Please sign in to comment.