Closed pixelzoom closed 5 years ago
I removed the dispose functions for BarometerNode and EquationNode, but I was unable to find BucketNode's dispose. Did I miss something, or is this all good now?
Looks like you got them all @SaurabhTotey. I must've been hallucinating about BucketNode, or might have been looking at FRACTIONS_COMMON/BucketNode
.
Closing.
Related to this item for code review #143:
Implementing
dispose
functions that are not used is also a problem. It's unexercised code, and it confuses future maintainers about what really needs to be disposed. That said...I see implementations of
dispose
for BarometerNode, BucketNode, EquationNode, PointNode. But the only call todispose
that I see being used is for PointNode, in BucketNode:If the
dispose
implementations for BarometerNode, BucketNode, and EquationNode are really not needed, then I recommend deleting them.I also recommend putting a note in implementation-notes.md about what needs to be disposed any why.