Removed unused function.
JSHint-ed