Let's say I had a class called `foo` which performed some functionality that I found was better done by library `bar`.

Assuming I deleted all references and includes of `foo`, could it still cause inefficiency in run-time/compile-time and would I have to remove the code from the project, is what I did enough or is this compiler dependent.