Remove all the unused assignments and imports.