From 6d158192b6727cc8ee296a78e9dd4ce392ca0c79 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 22 Jan 2025 17:37:38 -0600 Subject: [PATCH] clean code --- .../SideCar/Attributes/SideCarAttribute.cs | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs b/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs index eb6fd254..f4bb238d 100644 --- a/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs +++ b/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs @@ -142,34 +142,4 @@ public class SideCarAttribute : AsyncMoAttribute return; } #endregion - - - #region Call original method - private static T WrapGenericSync(Func target, object[] args) - { - T res; - res = (T)target(args); - return res; - } - - private static async Task WrapGenericAsync(Func target, object[] args) - { - T res; - res = await (Task)target(args); - return res; - } - - - private static void WrapSync(Func target, object[] args) - { - target(args); - return; - } - - private static async Task WrapAsync(Func target, object[] args) - { - await (Task)target(args); - return; - } - #endregion }