Remove dead code in statemanager update method.