Remove assignments to variables that are never read