Remove unused function

The API changed in TA 6.6 but it wasn't used anyway.