Skip to content

Commit 4fde524

Browse files
committed
removed unused code
1 parent b2334de commit 4fde524

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.SendMessage.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,4 @@ await hook.OnResponseGenerated(response)
171171
// Add to dialog history
172172
_storage.Append(_conversationId, response);
173173
}
174-
175-
private List<IConversationHook> ReOrderConversationHooks(List<IConversationHook> hooks)
176-
{
177-
var target = "ChatHubConversationHook";
178-
var chathub = hooks.FirstOrDefault(x => x.GetType().Name == target);
179-
var otherHooks = hooks.Where(x => x.GetType().Name != target).ToList();
180-
181-
if (chathub != null)
182-
{
183-
var newHooks = new List<IConversationHook> { chathub }.Concat(otherHooks);
184-
return newHooks.ToList();
185-
}
186-
return hooks;
187-
}
188174
}

0 commit comments

Comments
 (0)