Android Question Unused Functions

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I've searched the best I can and could not locate anything.

Is there a way to scan my project for any functions (that I've written not in libraries) that aren't being called or used?

My project is 6+ years old now and I am sure there may be some code that isn't being used any more.

I'm guessing the answer is to write a B4J program to suck out all the sub lines and product a list and then search the code for the list

Just hoping someone has already done this.

BobVal
 

aeric

Expert
Licensed User
Longtime User
You will get a warning in Logs if the function is not used.
B4X:
Sub 'MyVeryUsefulSub' is not used. (warning #12)

Except for function declared as Public in code modules.
 
Upvote 2

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I thought so, but because I have none (and have looked for Ignore on lines of functions) was thinking that was no longer true.
WOW, hard to believe.

Thanks
 
Upvote 0
Top