]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused handle_error macro rule
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 26 Nov 2023 15:55:27 +0000 (10:55 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 1 Dec 2023 17:54:00 +0000 (11:54 -0600)
lightning/src/ln/channelmanager.rs

index 48c906a33074b48c3475de41cd5171d98393fbe2..73f1391d530fde0c81bb31fe67fd0f3a18c4058b 100644 (file)
@@ -1942,15 +1942,6 @@ macro_rules! handle_error {
                        },
                }
        } };
-       ($self: ident, $internal: expr) => {
-               match $internal {
-                       Ok(res) => Ok(res),
-                       Err((chan, msg_handle_err)) => {
-                               let counterparty_node_id = chan.get_counterparty_node_id();
-                               handle_error!($self, Err(msg_handle_err), counterparty_node_id).map_err(|err| (chan, err))
-                       },
-               }
-       };
 }
 
 macro_rules! update_maps_on_chan_removal {