diff --git a/BotPages.Core/Routing/CommandsRegistry.cs b/BotPages.Core/Routing/CommandsRegistry.cs index 6435601..93344ef 100644 --- a/BotPages.Core/Routing/CommandsRegistry.cs +++ b/BotPages.Core/Routing/CommandsRegistry.cs @@ -17,8 +17,6 @@ internal sealed class CommandsRegistry /// public CommandsRegistry Map(string commandTemplate, bool publish = false, string? description = null) where TPage : Page { - var pattern = ToRegex(commandTemplate); - return Map(commandTemplate, (ctx, args, ct) => ctx.Navigation.GoToAsync(ctx, ct), publish, description); }