I have a custom class that I often use in my projects. This class has several methods, but not all of them are used in each project.
My question is: inclusion of this class in the project will inflate the project with useless code or will the compiler simply include the methods used?
I mean, if my class has 30 methods, but only 4 are used in this project, will the compiler include other unused 26 or only 4 used in the final product?
If it includes everything, is there a way to make it ignore unused methods and trim the binary to a minimum?
source
share