From 5ff1d797822c4b7f60e727a51b64c3df5c6a3fdf Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 5 Mar 2021 14:30:54 -0500 Subject: [PATCH] Drop stale WIP files that should not have been checked in --- .../chaininterface/BroadcasterInterface.java | 5 -- .../chain/keysinterface/KeysInterface.java | 5 -- .../ln/channelmanager/ChannelManager.java | 19 ------ .../ln/channelmonitor/ManyChannelMonitor.java | 4 -- .../org/ldk/impl/ln/msgs/AcceptChannel.java | 18 ----- .../impl/ln/msgs/AnnouncementSignatures.java | 5 -- .../ldk/impl/ln/msgs/ChannelAnnouncement.java | 5 -- .../impl/ln/msgs/ChannelMessageHandler.java | 8 --- .../ldk/impl/ln/msgs/ChannelReestablish.java | 5 -- .../org/ldk/impl/ln/msgs/ChannelUpdate.java | 5 -- .../impl/ln/msgs/RoutingMessageHandler.java | 7 -- src/main/java/org/ldk/impl/ln/msgs/msgs.java | 67 ------------------- .../impl/ln/peer_handler/MessageHandler.java | 26 ------- .../ldk/impl/ln/peer_handler/PeerManager.java | 19 ------ 14 files changed, 198 deletions(-) delete mode 100644 src/main/java/org/ldk/impl/chain/chaininterface/BroadcasterInterface.java delete mode 100644 src/main/java/org/ldk/impl/chain/keysinterface/KeysInterface.java delete mode 100644 src/main/java/org/ldk/impl/ln/channelmanager/ChannelManager.java delete mode 100644 src/main/java/org/ldk/impl/ln/channelmonitor/ManyChannelMonitor.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/AcceptChannel.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/AnnouncementSignatures.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/ChannelAnnouncement.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/ChannelMessageHandler.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/ChannelReestablish.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/ChannelUpdate.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/RoutingMessageHandler.java delete mode 100644 src/main/java/org/ldk/impl/ln/msgs/msgs.java delete mode 100644 src/main/java/org/ldk/impl/ln/peer_handler/MessageHandler.java delete mode 100644 src/main/java/org/ldk/impl/ln/peer_handler/PeerManager.java diff --git a/src/main/java/org/ldk/impl/chain/chaininterface/BroadcasterInterface.java b/src/main/java/org/ldk/impl/chain/chaininterface/BroadcasterInterface.java deleted file mode 100644 index 7b602d85..00000000 --- a/src/main/java/org/ldk/impl/chain/chaininterface/BroadcasterInterface.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.ldk.impl.chain.chaininterface; - -public interface BroadcasterInterface { - public void broadcast_transaction(byte[] transaction_data); -} diff --git a/src/main/java/org/ldk/impl/chain/keysinterface/KeysInterface.java b/src/main/java/org/ldk/impl/chain/keysinterface/KeysInterface.java deleted file mode 100644 index 66d7b515..00000000 --- a/src/main/java/org/ldk/impl/chain/keysinterface/KeysInterface.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.ldk.impl.chain.keysinterface; - -public class KeysInterface { - -} diff --git a/src/main/java/org/ldk/impl/ln/channelmanager/ChannelManager.java b/src/main/java/org/ldk/impl/ln/channelmanager/ChannelManager.java deleted file mode 100644 index f961fc50..00000000 --- a/src/main/java/org/ldk/impl/ln/channelmanager/ChannelManager.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.ldk.impl.ln.channelmanager; - -import org.ldk.impl.chain.chaininterface.BroadcasterInterface; -import org.ldk.impl.chain.keysinterface.KeysInterface; -import org.ldk.impl.ln.channelmonitor.ManyChannelMonitor; - -public class ChannelManager { - public enum Network { - Bitcoin, - Testnet - } - /*public ChannelManager(Network net, FeeEstimator feeEstimator, ManyChannelMonitor monitor, - BroadcasterInterface broadcaster, Logger logger, KeysInterface keys, - UserConfig config, int cur_chain_height) { - - }*/ - - -} diff --git a/src/main/java/org/ldk/impl/ln/channelmonitor/ManyChannelMonitor.java b/src/main/java/org/ldk/impl/ln/channelmonitor/ManyChannelMonitor.java deleted file mode 100644 index 286004d0..00000000 --- a/src/main/java/org/ldk/impl/ln/channelmonitor/ManyChannelMonitor.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.ldk.impl.ln.channelmonitor; - -public interface ManyChannelMonitor { -} diff --git a/src/main/java/org/ldk/impl/ln/msgs/AcceptChannel.java b/src/main/java/org/ldk/impl/ln/msgs/AcceptChannel.java deleted file mode 100644 index bafb7bb6..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/AcceptChannel.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.ldk.impl.ln.msgs; - -import org.ldk.impl.bindings; - -public final class AcceptChannel { - private final long c_obj; - - private AcceptChannel(long c_obj) { - this.c_obj = c_obj; - } - - @SuppressWarnings("deprecation") - @Override - final protected void finalize() throws Throwable { - bindings.AcceptChannel_free(this.c_obj); - super.finalize(); - } -} diff --git a/src/main/java/org/ldk/impl/ln/msgs/AnnouncementSignatures.java b/src/main/java/org/ldk/impl/ln/msgs/AnnouncementSignatures.java deleted file mode 100644 index 71904413..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/AnnouncementSignatures.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.ldk.impl.ln.msgs; - -public class AnnouncementSignatures { - private long c_obj; -} diff --git a/src/main/java/org/ldk/impl/ln/msgs/ChannelAnnouncement.java b/src/main/java/org/ldk/impl/ln/msgs/ChannelAnnouncement.java deleted file mode 100644 index e559337f..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/ChannelAnnouncement.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.ldk.impl.ln.msgs; - -public class ChannelAnnouncement { - private long c_obj; -} diff --git a/src/main/java/org/ldk/impl/ln/msgs/ChannelMessageHandler.java b/src/main/java/org/ldk/impl/ln/msgs/ChannelMessageHandler.java deleted file mode 100644 index aad48d82..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/ChannelMessageHandler.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.ldk.impl.ln.msgs; - -public abstract class ChannelMessageHandler { - private long c_obj; - public long getC_obj() { return c_obj; } - - //abstract void handle_open_channel(char[] public_key, OpenChannel msg); -} \ No newline at end of file diff --git a/src/main/java/org/ldk/impl/ln/msgs/ChannelReestablish.java b/src/main/java/org/ldk/impl/ln/msgs/ChannelReestablish.java deleted file mode 100644 index 4aec61c8..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/ChannelReestablish.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.ldk.impl.ln.msgs; - -public class ChannelReestablish { - private long c_obj; -} diff --git a/src/main/java/org/ldk/impl/ln/msgs/ChannelUpdate.java b/src/main/java/org/ldk/impl/ln/msgs/ChannelUpdate.java deleted file mode 100644 index 7c7507e0..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/ChannelUpdate.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.ldk.impl.ln.msgs; - -public class ChannelUpdate { - private long c_obj; -} diff --git a/src/main/java/org/ldk/impl/ln/msgs/RoutingMessageHandler.java b/src/main/java/org/ldk/impl/ln/msgs/RoutingMessageHandler.java deleted file mode 100644 index 92b38cb4..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/RoutingMessageHandler.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.ldk.impl.ln.msgs; - -public abstract class RoutingMessageHandler { - private long c_obj; - public long getC_obj() { return c_obj; } - -} \ No newline at end of file diff --git a/src/main/java/org/ldk/impl/ln/msgs/msgs.java b/src/main/java/org/ldk/impl/ln/msgs/msgs.java deleted file mode 100644 index 0bef15e7..00000000 --- a/src/main/java/org/ldk/impl/ln/msgs/msgs.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.ldk.impl.ln.msgs; - -/*public class ClosingSigned { - private long c_obj; -} -public class CommitmentSigned { - private long c_obj; -} -public class CommitmentUpdate { - private long c_obj; -} -public class ErrorMessage { - private long c_obj; -} -public class FundingCreated { - private long c_obj; -} -public class FundingLocked { - private long c_obj; -} -public class FundingSigned { - private long c_obj; -} -public class Init { - private long c_obj; -} -public class NodeAnnouncement { - private long c_obj; -} -public class OpenChannel { - private long c_obj; -} -public class Ping { - private long c_obj; -} -public class Pong { - private long c_obj; -} -public class RevokeAndACK { - private long c_obj; -} -public class Shutdown { - private long c_obj; -} -public class UnsignedChannelAnnouncement { - private long c_obj; -} -public class UnsignedNodeAnnouncement { - private long c_obj; -} -public class UpdateAddHTLC { - private long c_obj; -} -public class UpdateFailHTLC { - private long c_obj; -} -public class UpdateFailMalformedHTLC { - private long c_obj; -} -public class UpdateFee { - private long c_obj; -} -public class UpdateFulfillHTLC { - private long c_obj; -} - -*/ \ No newline at end of file diff --git a/src/main/java/org/ldk/impl/ln/peer_handler/MessageHandler.java b/src/main/java/org/ldk/impl/ln/peer_handler/MessageHandler.java deleted file mode 100644 index 079727e5..00000000 --- a/src/main/java/org/ldk/impl/ln/peer_handler/MessageHandler.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.ldk.impl.ln.peer_handler; - -import org.ldk.impl.bindings; -import org.ldk.impl.ln.msgs.ChannelMessageHandler; -import org.ldk.impl.ln.msgs.RoutingMessageHandler; - -public class MessageHandler { - private final long c_obj; - // We don't care about these, but we hold references to them to ensure they don't get free'd before us - private final ChannelMessageHandler chan_handler; - private final RoutingMessageHandler route_handler; - - //oc Pr Bprivate MessageHandler(long c_obj) { this.c_obj = c_obj; } - public MessageHandler(ChannelMessageHandler chan_handler, RoutingMessageHandler route_handler) { - this.c_obj = bindings.MessageHandler_new(chan_handler.getC_obj(), route_handler.getC_obj()); - this.chan_handler = chan_handler; - this.route_handler = route_handler; - } - - @SuppressWarnings("deprecation") - @Override - final protected void finalize() throws Throwable { - bindings.MessageHandler_free(this.c_obj); - super.finalize(); - } -} \ No newline at end of file diff --git a/src/main/java/org/ldk/impl/ln/peer_handler/PeerManager.java b/src/main/java/org/ldk/impl/ln/peer_handler/PeerManager.java deleted file mode 100644 index 93add85b..00000000 --- a/src/main/java/org/ldk/impl/ln/peer_handler/PeerManager.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.ldk.impl.ln.peer_handler; - -import org.ldk.impl.bindings; - -public class PeerManager { - private final long c_obj; - - private PeerManager(long c_obj) { - this.c_obj = c_obj; - } - //public PeerManager(MessageHandler) - - @SuppressWarnings("deprecation") - @Override - final protected void finalize() throws Throwable { - bindings.PeerManager_free(this.c_obj); - super.finalize(); - } -} -- 2.39.5