api-doc.sh: Cleanup: Remove unused function