Function does not make use of passed arguments