Unreachable code makes the code more difficult to understand and may slow down loading of modules.

Deleting the unreachable code will make the code clearer and preserve the meaning of the code. However, it is possible that the original intention was that the code should execute and that it is unreachable signifies some other error.

In this example the assignment to remainder is never reached because there is a return statement on the previous line.

  • Wikipedia: Unreachable Code.