The define was wrong. I could've fixed it, but given this is unused I decided to drop the function altogether.