Removed redundant getSize-function