On 24.7.12 12:30, Angela Schreiber wrote:
hi michael

the implementation of Tree#remove starts with the following line:

         if (!isRoot() && parent.hasChild(name)) {

and it seems to me that testing for the parent containing the
Tree that i am having at hand is superfluous. is that the
leftover of a refactoring or could it really occur that in this
situation parent.hasChild returns false? if the latter was
true, i think this line deserves a little comment explaining
to the poor reader what are the circumstances of that behaviour.
maybe we would even need some log output for that special case.

what do you think?

This is most probably a refactoring left over from rev. 1359334 and can be removed.

Michael

angela

Reply via email to