Remove unneeded call by reference