Update endpoint client libs.
Remove useless code.