But people ignore warnings. The only way to keep code clean of unused variables and libraries (and prevent potential bugs where typos led to unused variables) is to disallow it completely.
In the end it's just about the variables anyway, most IDEs will remove unused libraries automatically.
In the end it's just about the variables anyway, most IDEs will remove unused libraries automatically.