Remove unused function

Was causing unknown spell debug output