Skip to content

Commit

Permalink
remove left over hash for FormulaNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Jul 3, 2021
1 parent e5e7818 commit 989a8b0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/ggplotnim/ggplot_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -503,22 +503,6 @@ proc hash*(x: ScaleValue): Hash =
of scText: discard
result = !$result

proc hash*(fn: FormulaNode): Hash =
result = hash(fn.kind.int)
result = result !& hash(fn.name)
case fn.kind
of fkVariable:
result = result !& hash(fn.val)
of fkAssign:
result = result !& hash(fn.lhs)
result = result !& hash(fn.rhs)
of fkVector:
result = result !& hash(fn.resType)
result = result !& hash(fn.fnV)
of fkScalar:
result = result !& hash(fn.valKind)
result = result !& hash(fn.fnS)

proc hash*(x: Scale): Hash =
result = hash(x.scKind.int)
result = result !& hash(x.col)
Expand Down

0 comments on commit 989a8b0

Please sign in to comment.