Remove unused "d" variable