Remove unused variable

The compiler reported that as a warning while building, and from looking at it quickly it seems to be indeed unused and overwritten two lines below. I hope I'm not missing something obvious though.