Removed dead code and useless 'if(true)' conditions.