remove unnecessary variable

from code review by Mary, since I'm only using one layer, don't need to
set up this variable