mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-01 14:21:37 +00:00
[xml-writer] Remove a useless kludge
* src/abg-writer.cc (write_context::type_is_emitted): Remove useless kludge from here. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
7699dfc921
commit
eff603b4c3
@ -602,10 +602,7 @@ public:
|
|||||||
bool
|
bool
|
||||||
type_is_emitted(const type_base *t)
|
type_is_emitted(const type_base *t)
|
||||||
{
|
{
|
||||||
type_base *c = t->get_naked_canonical_type();
|
return m_emitted_type_set.find(t) != m_emitted_type_set.end();
|
||||||
if (c == 0)
|
|
||||||
c = const_cast<type_base*>(t);
|
|
||||||
return m_emitted_type_set.find(c) != m_emitted_type_set.end();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Test if a given type has been written out to the XML output.
|
/// Test if a given type has been written out to the XML output.
|
||||||
|
Loading…
Reference in New Issue
Block a user