From ea492455138e303785b2f28d26b0410b96aa576e Mon Sep 17 00:00:00 2001 From: kevstone Date: Sat, 10 Feb 2024 08:52:36 +0000 Subject: [PATCH] Removed duplicate member functions in header --- src/clang_convert/cpp_code/cppcode.py | 4 ---- src/clang_convert/grib_accessor/j2/grib_accessor_header.h.j2 | 2 -- src/clang_convert/grib_accessor/j2/grib_accessor_source.cc.j2 | 4 ---- 3 files changed, 10 deletions(-) diff --git a/src/clang_convert/cpp_code/cppcode.py b/src/clang_convert/cpp_code/cppcode.py index 8d71cd9af..41c22a012 100755 --- a/src/clang_convert/cpp_code/cppcode.py +++ b/src/clang_convert/cpp_code/cppcode.py @@ -75,10 +75,6 @@ class CppCode: def member_functions(self): return self._code_elements.member_functions - @property - def template_member_functions(self): - return self._code_elements.member_functions - @property def virtual_member_functions(self): return self._code_elements.virtual_member_functions diff --git a/src/clang_convert/grib_accessor/j2/grib_accessor_header.h.j2 b/src/clang_convert/grib_accessor/j2/grib_accessor_header.h.j2 index df055741c..c3f92738c 100644 --- a/src/clang_convert/grib_accessor/j2/grib_accessor_header.h.j2 +++ b/src/clang_convert/grib_accessor/j2/grib_accessor_header.h.j2 @@ -44,8 +44,6 @@ protected: private: // Member functions - {%- for m in c.template_member_functions %} - {{ m.funcsig_as_declaration }};{% endfor %} {%- for m in c.member_functions %} {{ m.funcsig_as_declaration }};{% endfor %} }; diff --git a/src/clang_convert/grib_accessor/j2/grib_accessor_source.cc.j2 b/src/clang_convert/grib_accessor/j2/grib_accessor_source.cc.j2 index a5f97ede5..48d9e2b10 100644 --- a/src/clang_convert/grib_accessor/j2/grib_accessor_source.cc.j2 +++ b/src/clang_convert/grib_accessor/j2/grib_accessor_source.cc.j2 @@ -30,10 +30,6 @@ namespace {{ c.nested_namespaces }} { {{ c.destructor.as_string() }} {% endif %} -{% for func in c.template_member_functions %} -{{ func.as_string() }} -{% endfor %} - {% for func in c.virtual_member_functions %} {{ func.as_string() }} {% endfor %}