@@ -1145,17 +1145,6 @@ where
1145
1145
self . offers_handler = offers_handler;
1146
1146
}
1147
1147
1148
- /// Sends an [`OnionMessage`] with the given `contents` to `destination`.
1149
- ///
1150
- /// See [`OnionMessenger`] for example usage.
1151
- pub fn send_onion_message_with_specified_reply_path < T : OnionMessageContents > (
1152
- & self , contents : T , destination : Destination , reply_path : Option < BlindedMessagePath >
1153
- ) -> Result < SendSuccess , SendError > {
1154
- self . find_path_and_enqueue_onion_message (
1155
- contents, destination, reply_path, format_args ! ( "" )
1156
- )
1157
- }
1158
-
1159
1148
/// Sends an [`OnionMessage`] based on its [`MessageSendInstructions`].
1160
1149
pub fn send_onion_message < T : OnionMessageContents > (
1161
1150
& self , contents : T , instructions : MessageSendInstructions ,
@@ -1164,7 +1153,7 @@ where
1164
1153
}
1165
1154
1166
1155
fn send_onion_message_internal < T : OnionMessageContents > (
1167
- & self , message : T , instructions : MessageSendInstructions , log_suffix : fmt:: Arguments ,
1156
+ & self , contents : T , instructions : MessageSendInstructions , log_suffix : fmt:: Arguments ,
1168
1157
) -> Result < SendSuccess , SendError > {
1169
1158
let ( destination, reply_path) = match instructions {
1170
1159
MessageSendInstructions :: WithSpecifiedReplyPath { destination, reply_path } =>
@@ -1186,15 +1175,6 @@ where
1186
1175
( destination, None ) ,
1187
1176
} ;
1188
1177
1189
- self . find_path_and_enqueue_onion_message (
1190
- message, destination, reply_path, log_suffix,
1191
- )
1192
- }
1193
-
1194
- fn find_path_and_enqueue_onion_message < T : OnionMessageContents > (
1195
- & self , contents : T , destination : Destination , reply_path : Option < BlindedMessagePath > ,
1196
- log_suffix : fmt:: Arguments
1197
- ) -> Result < SendSuccess , SendError > {
1198
1178
let mut logger = WithContext :: from ( & self . logger , None , None , None ) ;
1199
1179
let result = self . find_path ( destination) . and_then ( |path| {
1200
1180
let first_hop = path. intermediate_nodes . get ( 0 ) . map ( |p| * p) ;
0 commit comments