Remove unused variable to fix build warning (.NET)