Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

redundant line of code #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
public HTMLComponent(DocumentRequestHandler handler) {
...
...
 if (eventsEnabled) {
            eventsListener=new HTMLEventsListener(this);
 }
...
...
}

Since this function is a constructor and since eventsEnabled is false by 
default and since eventsEnabled is never set in this function BEFORE the 
if-statement is executed, the if-statement is redundant.

Original issue reported on code.google.com by jkoo...@gmail.com on 11 Apr 2012 at 11:28

GoogleCodeExporter commented 9 years ago
Removed it.

Original comment by shai.almog on 11 Apr 2012 at 3:02