ENYO-3354: fix a jshint error.

Delete a dead code.