From 3817d018368566cd753f6dfaf60885901e5abf7f Mon Sep 17 00:00:00 2001 From: Florian Zevedei Date: Wed, 13 Sep 2023 14:48:48 +0200 Subject: [PATCH] Removing obsolete code from ArrayPromptDialog --- TelegramBotBase/Form/ArrayPromptDialog.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/TelegramBotBase/Form/ArrayPromptDialog.cs b/TelegramBotBase/Form/ArrayPromptDialog.cs index 7481563..e57aa7b 100644 --- a/TelegramBotBase/Form/ArrayPromptDialog.cs +++ b/TelegramBotBase/Form/ArrayPromptDialog.cs @@ -41,8 +41,6 @@ public class ArrayPromptDialog : FormBase public ButtonBase[][] Buttons { get; set; } - [Obsolete] public Dictionary ButtonForms { get; set; } = new(); - private static object EvButtonClicked { get; } = new(); public override async Task Action(MessageResult message) @@ -75,13 +73,6 @@ public class ArrayPromptDialog : FormBase } OnButtonClicked(new ButtonClickedEventArgs(button) { Tag = Tag }); - - var fb = ButtonForms.ContainsKey(call.Value) ? ButtonForms[call.Value] : null; - - if (fb != null) - { - await NavigateTo(fb); - } }