]> sourceware.org Git - libabigail.git/commit
reader: Use xmlFirstElementChild and xmlNextElementSibling rather than xml::advance_t...
authorDodji Seketeli <dodji@redhat.com>
Mon, 19 Apr 2021 10:56:45 +0000 (12:56 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 3 May 2021 15:15:22 +0000 (17:15 +0200)
commit09c7a773a3eafe81a4ef353e49d316de8e37037e
tree2e6b199a00a4cf20cafeb1636edd469f0f0c4e7f
parentdd55550355e2868165b2ce5249e8ffa4eed88c08
reader: Use xmlFirstElementChild and xmlNextElementSibling rather than xml::advance_to_next_sibling_element

The xml::advance_to_next_sibling_element is redundant with the
xmlNextElementSibling API of libxml.  Similarly, xmlFirstElementChild
is redundant with using xml::advance_to_next_sibling_element on the
xmlNode::children data member.  Let's use the libxml API instead.

* include/abg-libxml-utils.h (advance_to_next_sibling_element):
Remove the declaration of this function.
* src/abg-libxml-utils.cc (go_to_next_sibling_element_or_stay)
(advance_to_next_sibling_element): Remove definitions of these functions.
* src/abg-reader.cc (read_translation_unit_from_input)
(read_elf_needed_from_input, read_corpus_group_from_input): Use xmlNextElementSibling instead
of xml::advance_to_next_sibling_element.
(read_corpus_from_input): Likewise.  Also, use
xmlFirstElementChild instead of
xml::advance_to_next_sibling_element on the xmlNode::children data
member.
(read_corpus_group_from_input): use xmlFirstElementChild instead
of xml::advance_to_next_sibling_element on the xmlNode::children
data member.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-libxml-utils.h
src/abg-libxml-utils.cc
src/abg-reader.cc
This page took 0.031745 seconds and 5 git commands to generate.