]> git.bitcoin.ninja Git - ldk-java/commitdiff
[C#] Drop marshalling generation
authorMatt Corallo <git@bluematt.me>
Tue, 7 Nov 2023 23:25:37 +0000 (23:25 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Nov 2023 21:08:24 +0000 (21:08 +0000)
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.

csharp_strings.py

index e45f893220b6bff1a4cbb69da5f7dd5517725886..8efb1fc7afc5094f9f6a600128916e06d75431c8 100644 (file)
@@ -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 = ""