From fe9bf4fd6654b45813ebee1ba95840abc2b8826b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 7 Nov 2023 23:25:37 +0000 Subject: [PATCH] [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. --- csharp_strings.py | 2 -- 1 file changed, 2 deletions(-) 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 = "" -- 2.30.2