chore(Angular) Remove unused functions

This removes the functions size() and isLeafNode().