Why is this deprecated?

What should be used instead?