From: Matt Corallo Date: Tue, 7 Nov 2023 23:25:37 +0000 (+0000) Subject: [C#] Drop marshalling generation X-Git-Tag: v0.0.118.0-alpha0~9 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=fe9bf4fd6654b45813ebee1ba95840abc2b8826b;p=ldk-java [C#] Drop marshalling generation Given we now do array/string conversion using the TypeScript logic we no longer need to use the C# marshalling nonsense, which we remove the remnants of here. --- diff --git a/csharp_strings.py b/csharp_strings.py index e45f8932..8efb1fc7 100644 --- a/csharp_strings.py +++ b/csharp_strings.py @@ -1204,8 +1204,6 @@ public class {struct_name.replace("LDK","")} : CommonBase {{ out_c += (", ") if arg_conv_info.c_ty != "void": out_c += (arg_conv_info.c_ty + " " + arg_conv_info.arg_name) - if "[]" in arg_conv_info.java_ty: - out_java += "[MarshalAs(UnmanagedType.CustomMarshaler, MarshalType=\"org.ldk.impl.ArrayCoder\")] " out_java += (arg_conv_info.java_ty + " _" + arg_conv_info.arg_name) # Add a _ to avoid using reserved words out_java_struct = ""