As the book states, we are interested in writing clean code. As our programs and tests grow and we start to refactor, some code will become redundant. Any code that is redundant and does not get called is known as dead code. Dead code should always be removed as soon as it is identified. Dead code will not be executed in compiled code, but it is still part of the code base that needs to be maintained. Code files with dead code are longer than they need to be. Apart from the unnecessary fact that it makes your files bigger, it can also make reading source code harder, as it may cut through the natural flow of the code and add confusion and delay to the programmer reading it. Not only that, but the last thing any programmer new to the project needs is to waste valuable time trying to understand dead code that will never be used. So it is best to get rid of it.
As for comments, they can be really useful if done right, and...