The imports and functions that were not being used were removed to improve the code's readability and maintainability.