Removed useless output arguments from numerical gradient routines.