resample: remove an unneeded context variable