Remove obsolete function.

Compiles even with this applied. Given it's thread unsafe, can we simply remove it?