mkapidocs.py: remove unused functions and variables