Skip to content

Commit d76ffb7

Browse files
authored
Remove default == implementation for AbstractHoles
Implementers of new hole types should decide whether to follow the logic of a `Hole`, which has no children, or a `UniformHole,` which does.
1 parent b11f526 commit d76ffb7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/rulenode.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,6 @@ function Base.:(==)(a::UniformHole, b::UniformHole)
340340
return a.domain == b.domain && length(a.children) == length(b.children) &&
341341
all(isequal(a, b) for (a, b) in zip(a.children, b.children))
342342
end
343-
function Base.:(==)(a::H, b::H) where {H <: AbstractHole}
344-
return a.domain == b.domain
345-
end
346-
347343

348344
Base.copy(r::RuleNode) = RuleNode(r.ind, r._val, r.children)
349345
Base.copy(h::Hole) = Hole(copy(h.domain))

0 commit comments

Comments
 (0)