Delete unused xcb_list functions and refactor others.