remove redundant code in deathlistener