24.06.2009, 20:53
The Unreachable code warning is usually a result of bad indention. It means you have 'finished' coding in a callback / function by returning a value, breaking a loop, etc. and then continued to add code which the compiler cannot reach because there is no way it can continue.
Try improving your indention, I haven't fully read through the code, but I'm pretty confident that the cause is the return statement just after case 6.
Try improving your indention, I haven't fully read through the code, but I'm pretty confident that the cause is the return statement just after case 6.