Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhapa committed Apr 30, 2024
1 parent f7a7e46 commit 37ec663
Showing 1 changed file with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private static Deque<TriggerState> getStates() {
return THREAD_LOCAL_STATES.computeIfAbsent(Thread.currentThread(), thread -> new ArrayDeque<>());
}

private record TriggerState(Trigger trigger, TriggerPhase triggerPhase, TriggerEvent triggerEvent, XmldbURI src,
record TriggerState(Trigger trigger, TriggerPhase triggerPhase, TriggerEvent triggerEvent, XmldbURI src,
@Nullable XmldbURI dst, boolean possiblyCyclic) {

@Override
Expand Down Expand Up @@ -186,7 +186,7 @@ public String toString() {
}


private boolean equalsIgnoringPhase(final Trigger otherTrigger, final TriggerEvent otherTriggerEvent, final XmldbURI otherSrc, @Nullable final XmldbURI otherDst) {
boolean equalsIgnoringPhase(final Trigger otherTrigger, final TriggerEvent otherTriggerEvent, final XmldbURI otherSrc, @Nullable final XmldbURI otherDst) {
if (!trigger.equals(otherTrigger)) {
return false;
}
Expand Down Expand Up @@ -222,29 +222,5 @@ public boolean isCompletedBy(final Trigger otherTrigger, final TriggerPhase othe

return Objects.equals(dst, otherDst);
}

public boolean completes(final Object o) {
if (o instanceof TriggerState that) {
if (this.triggerPhase != TriggerPhase.AFTER
|| that.triggerPhase != TriggerPhase.BEFORE) {
return false;
}

if (!trigger.equals(that.trigger)) {
return false;
}

if (triggerEvent != that.triggerEvent) {
return false;
}

if (!src.equals(that.src)) {
return false;
}

return Objects.equals(dst, that.dst);
}
return false;
}
}
}

0 comments on commit 37ec663

Please sign in to comment.