Bug? Unused Subs warning

LucaMs

Expert
Licensed User
Longtime User
This isn't a real bug; Furthermore, it doesn't interest me much and I'll explain why.

I opened a project posted by a B4X member. In it, some Subs have been written without specifying their "visibility" (Private or Public). I never do it, so what I'm about to write is of little interest to me.

A Sub declared like this, without Private or Public, is automatically considered Public. The IDE does NOT list public Subs as "unused", but "implied public" ones yes.

Was I clear enough? I do not think so :p
 

Daestrum

Expert
Licensed User
Longtime User
Yes you were clear
B4X:
Private Sub ....         'no unused message

Public Sub ...          ' no unused message

Sub ...                    ' gets unused message

Sub ... 'ignore        ' no unused message
 

Daestrum

Expert
Licensed User
Longtime User
Why am I not surprised Haha.

I tend to use (sometmes) Private and Public subs in class modules but not in the main class.
 
Top