I’m wondering what / if any consequences there are in having unused functions in code?
If you hunt down and remove all unused functions and variables would there be any percievable improvement in performance?
Or is it just good practice to remove unused functions and variables would?
Unused functions can’t harm performance. They are making the job harder for guys who are maintaining the code. Modern IDE’s keep track of unused functions/methods and variables. If it’s not a case with the technology that you are speaking about maintainers will have to deal with unused code thinking it’s necessary.