Remove dead Hash methods

This commit is contained in:
Peter Boyer 2017-03-12 14:17:15 -04:00
parent 1a28a0429b
commit e22d94a817
1 changed files with 0 additions and 8 deletions

View File

@ -95,10 +95,6 @@ func (p *Predicate) evaluate(parser Recognizer, outerContext RuleContext) bool {
return parser.Sempred(localctx, p.ruleIndex, p.predIndex)
}
func (p *Predicate) Hash() string {
return strconv.Itoa(p.ruleIndex) + "/" + strconv.Itoa(p.predIndex) + "/" + fmt.Sprint(p.isCtxDependent)
}
func (p *Predicate) equals(other interface{}) bool {
if p == other {
return true
@ -147,10 +143,6 @@ func (p *PrecedencePredicate) compareTo(other *PrecedencePredicate) int {
return p.precedence - other.precedence
}
func (p *PrecedencePredicate) Hash() string {
return "31"
}
func (p *PrecedencePredicate) equals(other interface{}) bool {
if p == other {
return true