opencash/opencash — pull request #2 by pedrovereza (2014-02-02 17:26:21+00:00)
Title: More expressive methods on Account

This commit creates a more expressive public method for removing parent from child account.
Instead of calling ``setParent(NULL)``, method ``removeParent()`` should be used as it is more expressive about the operation.

Also, two private methods were extracted from ``setParent`` based on comments around ``if`` blocks. The motivation was to make ``setParent`` easier to understand.