Drop unused methods from Rule interface. To be reinstated in RuleEx.
This commit is contained in:
parent
955c814c3c
commit
01195cb1ac
|
|
@ -215,7 +215,6 @@ internal open class MatchJournalImpl(
|
||||||
override fun kind(): Kind = Kind.PROPAGATION
|
override fun kind(): Kind = Kind.PROPAGATION
|
||||||
override fun uniqueTag(): Any = tag().hashCode()
|
override fun uniqueTag(): Any = tag().hashCode()
|
||||||
override fun tag(): String = "initialrule${"initialrule".hashCode()}"
|
override fun tag(): String = "initialrule${"initialrule".hashCode()}"
|
||||||
override fun basetag(): String = tag()
|
|
||||||
override fun headKept(): Iterable<Constraint> = emptyList()
|
override fun headKept(): Iterable<Constraint> = emptyList()
|
||||||
override fun headReplaced(): Iterable<Constraint> = emptyList()
|
override fun headReplaced(): Iterable<Constraint> = emptyList()
|
||||||
override fun guard(): Iterable<Predicate> = emptyList()
|
override fun guard(): Iterable<Predicate> = emptyList()
|
||||||
|
|
|
||||||
|
|
@ -50,16 +50,6 @@ public abstract class Rule {
|
||||||
*/
|
*/
|
||||||
public abstract String tag();
|
public abstract String tag();
|
||||||
|
|
||||||
/**
|
|
||||||
* Human-readable identifier shared by all rules produced from the same template.
|
|
||||||
*/
|
|
||||||
public abstract String basetag();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An origin serves as justification for all constraints affected by this rule.
|
|
||||||
*/
|
|
||||||
public Object origin() { return null; }
|
|
||||||
|
|
||||||
public abstract Iterable<Constraint> headKept();
|
public abstract Iterable<Constraint> headKept();
|
||||||
|
|
||||||
public abstract Iterable<Constraint> headReplaced();
|
public abstract Iterable<Constraint> headReplaced();
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,6 @@ class MockRule(
|
||||||
|
|
||||||
override fun tag(): String = tag
|
override fun tag(): String = tag
|
||||||
|
|
||||||
override fun basetag(): String = tag
|
|
||||||
|
|
||||||
override fun headKept(): Iterable<Constraint> = kept
|
override fun headKept(): Iterable<Constraint> = kept
|
||||||
|
|
||||||
override fun headReplaced(): Iterable<Constraint> = replaced
|
override fun headReplaced(): Iterable<Constraint> = replaced
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue