Remove unused functions in texts.py