By Library I meant a Class that can be compiled to a library. So there will be many methods unused. But it's the same for both Code Modules and Classes.
No, it is not the same (Steve, learn Italian, please, I could explain better
)
If you have a module or class in you project, which contains routines declared without specifying the "visibility" (Public), you get warnings.
If you compile that class as Library, then if you don't use some of its routines, you don't get warnings, regardless of the type of declaration.
'Class module
Sub Class_Globals
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
End Sub
Sub NotSpecified1
Log("NotSpecified1")
End Sub
Sub NotSpecified2
Log("NotSpecified2")
End Sub
Public Sub Specified1
Log("Specified1")
End Sub
Public Sub Specified2
Log("Specified2")
End Sub
Using this class directly (not compiled as Library) for each routine declared with "Sub" only you get a warning (I think it would be better to get warnings even for unused routines declared with "Public Sub").
If you compile that Class as Library and you don't use its routines in your project, you don't get warnings at all (and this is the right behaviour).