Remove two useless assignments (#2093)