mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 14:49:16 +02:00
Further cleanup for commented-out Union discriminator handling
This commit is contained in:
parent
865ac8e510
commit
9a467b6cd8
@ -1910,6 +1910,7 @@ g_ir_node_build_typelib (GIrNode *node,
|
|||||||
blob->discriminator_offset = union_->discriminator_offset;
|
blob->discriminator_offset = union_->discriminator_offset;
|
||||||
|
|
||||||
/* We don't support Union discriminators right now. */
|
/* We don't support Union discriminators right now. */
|
||||||
|
/*
|
||||||
if (union_->discriminator_type)
|
if (union_->discriminator_type)
|
||||||
{
|
{
|
||||||
*offset += 28;
|
*offset += 28;
|
||||||
@ -1918,14 +1919,8 @@ g_ir_node_build_typelib (GIrNode *node,
|
|||||||
module, modules, strings, types,
|
module, modules, strings, types,
|
||||||
data, offset, offset2);
|
data, offset, offset2);
|
||||||
}
|
}
|
||||||
/* Always do the non-discriminated case */
|
|
||||||
/*
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*offset += 32;
|
|
||||||
blob->discriminated = FALSE;
|
|
||||||
blob->discriminator_type.offset = 0;
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
*offset += sizeof (UnionBlob);
|
*offset += sizeof (UnionBlob);
|
||||||
blob->discriminated = FALSE;
|
blob->discriminated = FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user