From: Matt Corallo Date: Wed, 5 Jan 2022 06:20:42 +0000 (+0000) Subject: Drop ts/util* which are no longer used/generated X-Git-Tag: v0.0.104.1~2^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e405a314197cae1629f65ccf29c6966198f8f4f7;p=ldk-java Drop ts/util* which are no longer used/generated --- diff --git a/ts/util.ts b/ts/util.ts deleted file mode 100644 index 4f3d1135..00000000 --- a/ts/util.ts +++ /dev/null @@ -1,21 +0,0 @@ -export class TwoTuple { - public a: A; - public b: B; - - constructor(a: A, b: B) { - this.a = a; - this.b = b; - } -} - -export class ThreeTuple { - public a: A; - public b: B; - public c: C; - - constructor(a: A, b: B, c: C) { - this.a = a; - this.b = b; - this.c = c; - } -} diff --git a/ts/util/UtilMethods.ts b/ts/util/UtilMethods.ts deleted file mode 100644 index aa560727..00000000 --- a/ts/util/UtilMethods.ts +++ /dev/null @@ -1,20 +0,0 @@ - public static Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ constructor_BlockHashChannelMonitorZ_read(Uint8Array ser, KeysInterface arg) { - number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_read(ser, arg == null ? 0 : arg.ptr); - Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(arg); - return ret_hu_conv; - } - - public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constructor_BlockHashChannelManagerZ_read(Uint8Array ser, KeysInterface arg_keys_manager, FeeEstimator arg_fee_estimator, Watch arg_chain_monitor, BroadcasterInterface arg_tx_broadcaster, Logger arg_logger, UserConfig arg_default_config, ChannelMonitor[] arg_channel_monitors) { - number ret = bindings.C2Tuple_BlockHashChannelManagerZ_read(ser, bindings.ChannelManagerReadArgs_new(arg_keys_manager == null ? 0 : arg_keys_manager.ptr, arg_fee_estimator == null ? 0 : arg_fee_estimator.ptr, arg_chain_monitor == null ? 0 : arg_chain_monitor.ptr, arg_tx_broadcaster == null ? 0 : arg_tx_broadcaster.ptr, arg_logger == null ? 0 : arg_logger.ptr, arg_default_config == null ? 0 : arg_default_config.ptr & ~1, (number[])Arrays.stream(arg_channel_monitors).map(arr_conv_16 -> arr_conv_16 == null ? 0 : arr_conv_16.ptr & ~1).toArray())); - Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(arg_keys_manager); - ret_hu_conv.ptrs_to.add(arg_fee_estimator); - ret_hu_conv.ptrs_to.add(arg_chain_monitor); - ret_hu_conv.ptrs_to.add(arg_tx_broadcaster); - ret_hu_conv.ptrs_to.add(arg_logger); - ret_hu_conv.ptrs_to.add(arg_default_config); - /* TODO 2 ChannelMonitor */; - return ret_hu_conv; - } - diff --git a/ts/util/functions.ts b/ts/util/functions.ts deleted file mode 100644 index aa560727..00000000 --- a/ts/util/functions.ts +++ /dev/null @@ -1,20 +0,0 @@ - public static Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ constructor_BlockHashChannelMonitorZ_read(Uint8Array ser, KeysInterface arg) { - number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_read(ser, arg == null ? 0 : arg.ptr); - Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(arg); - return ret_hu_conv; - } - - public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constructor_BlockHashChannelManagerZ_read(Uint8Array ser, KeysInterface arg_keys_manager, FeeEstimator arg_fee_estimator, Watch arg_chain_monitor, BroadcasterInterface arg_tx_broadcaster, Logger arg_logger, UserConfig arg_default_config, ChannelMonitor[] arg_channel_monitors) { - number ret = bindings.C2Tuple_BlockHashChannelManagerZ_read(ser, bindings.ChannelManagerReadArgs_new(arg_keys_manager == null ? 0 : arg_keys_manager.ptr, arg_fee_estimator == null ? 0 : arg_fee_estimator.ptr, arg_chain_monitor == null ? 0 : arg_chain_monitor.ptr, arg_tx_broadcaster == null ? 0 : arg_tx_broadcaster.ptr, arg_logger == null ? 0 : arg_logger.ptr, arg_default_config == null ? 0 : arg_default_config.ptr & ~1, (number[])Arrays.stream(arg_channel_monitors).map(arr_conv_16 -> arr_conv_16 == null ? 0 : arr_conv_16.ptr & ~1).toArray())); - Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(arg_keys_manager); - ret_hu_conv.ptrs_to.add(arg_fee_estimator); - ret_hu_conv.ptrs_to.add(arg_chain_monitor); - ret_hu_conv.ptrs_to.add(arg_tx_broadcaster); - ret_hu_conv.ptrs_to.add(arg_logger); - ret_hu_conv.ptrs_to.add(arg_default_config); - /* TODO 2 ChannelMonitor */; - return ret_hu_conv; - } -