From 53566c47bdee2c0e7685a2ac8b3cbb343d5fb42e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 22 May 2023 10:21:44 +0930 Subject: [PATCH] tools: remove optional csv field handling. There are no feature-dependent fields left in the spec. (I've also made a PR for the spec to remove the tooling for it there). Signed-off-by: Rusty Russell --- tools/gen/print_impl_template | 5 --- tools/generate-wire.py | 70 ++++++----------------------------- 2 files changed, 11 insertions(+), 64 deletions(-) diff --git a/tools/gen/print_impl_template b/tools/gen/print_impl_template index 3da32dd53..1b32d8193 100644 --- a/tools/gen/print_impl_template +++ b/tools/gen/print_impl_template @@ -38,11 +38,6 @@ bool print${options.enum_name}_message(const u8 *msg) ## definition for printing field sets <%def name="print_fieldset(fields)"> % for f in fields: - % if f.is_extension(): - if (*plen == 0) - return true; - printf("(${','.join(f.extension_names)}):"); - % endif % if f.len_field_of: ${f.type_obj.type_name()} ${f.name} = fromwire_${f.type_obj.name}(cursor, plen);${truncate_check()} <% continue %> \ % endif diff --git a/tools/generate-wire.py b/tools/generate-wire.py index 8b7b148d7..92492d39d 100755 --- a/tools/generate-wire.py +++ b/tools/generate-wire.py @@ -7,15 +7,15 @@ # # Standard message types: # msgtype,,[,