diff --git a/ridlbe/c++11/visitors/bitset.rb b/ridlbe/c++11/visitors/bitset.rb index f3a753ef..961e6d69 100644 --- a/ridlbe/c++11/visitors/bitset.rb +++ b/ridlbe/c++11/visitors/bitset.rb @@ -37,15 +37,7 @@ def default_value unless node.annotations[:default].first.nil? "#{node.annotations[:default].first.fields[:value]}" else - # Check whether it is a typedef, if so, we need to see if there is an annotation applied to the typedef (or its typedef) - res_idl_type = _idltype - while res_idl_type.is_a?(IDL::Type::ScopedName) - unless res_idl_type.node.annotations[:default].first.nil? - return "#{res_idl_type.node.annotations[:default].first.fields[:value]}" - end - res_idl_type = res_idl_type.node.idltype - end - _resolved_idltype.default + _idltype.default end end end