Removed old function that didn't return anything.

This function is clearly old and not used anymore, so I removed it.