refact(Angular.js) remove unused functions

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

Closes #9682