Removed unused internal function.
Found by Cppcheck.