Remove unused imports and warnings.