Skip to content

Commit

Permalink
Remove FASTCDR_VERSION_MAJOR == 1 related code (#378)
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
  • Loading branch information
EduPonz committed Jul 24, 2024
1 parent 4ba8926 commit c3e3c73
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ $ctx.directIncludeDependencies : {include | %include "$include$.i"}; separator="
%}

%include <fastcdr/config.h>
#if FASTCDR_VERSION_MAJOR > 1
%import(module="fastdds") "fastcdr/xcdr/optional.hpp"
#endif
%import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp"
%import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp"
%import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp"
Expand Down Expand Up @@ -147,9 +145,6 @@ $endif$

member_getters(struct_name, member) ::= <<
$if(member.annotationOptional)$
#if FASTCDR_VERSION_MAJOR == 1
%ignore $struct_name$::$member.name$($member.typecode.cppTypename$&&);
#else
%ignore eprosima::fastcdr::optional::value;
%ignore eprosima::fastcdr::optional::reset;
%template($member.typecode.noScopedCppTypename$Opt) eprosima::fastcdr::optional<$member.typecode.cppTypename$>;
Expand All @@ -163,7 +158,6 @@ $if(member.annotationOptional)$
}
}
%ignore $struct_name$::$member.name$(eprosima::fastcdr::optional<$member.typecode.cppTypename$>&&);
#endif
$else$
%ignore $struct_name$::$member.name$($member.typecode.cppTypename$&&);
$endif$
Expand Down

0 comments on commit c3e3c73

Please sign in to comment.