Is there a simple way to find dead jbase code? A specific example of dead code is something like:
x = "a"
if(x = "a"){
do some stuff
}
else {
do some other stuff
}
For the above fragment there is no way the "do some other stuff" could ever be executed. Having a way to identify and find dead code would be very helpful, because older programs are sometimes bloated with lots of dead code, which makes it difficult to figure out what the program is actually doing.