You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do all types that require a dispose function have one? This should expose a public dispose function that calls this.disposeMyType(), where disposeMyType is a private function declared in the constructor. MyType should exactly match the filename.
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 to dispose that I see being used is for PointNode, in BucketNode:
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?
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.
The text was updated successfully, but these errors were encountered: