Remove unneeded function

This one is not needed anymore because of b7995184.