Removes now-unnecessary local variables for length, ship name.