Remove unused 'set' statements