Remove unused assignments