From cf8396542e4102aa2a9b53b01477ab7f8575e29e Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Tue, 21 Apr 2020 17:31:46 -0700 Subject: [PATCH] Revert "Add missing AsAsyncAction and AsAsyncOperation methods. (#169)" (#171) This reverts commit 630c45e68d4458ea7c8d8cdbe968c61958891ad9. --- .../Windows.Foundation/Windows.Foundation.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cswinrt/strings/additions/Windows.Foundation/Windows.Foundation.cs b/cswinrt/strings/additions/Windows.Foundation/Windows.Foundation.cs index e8c287fce..f38ac6aa7 100644 --- a/cswinrt/strings/additions/Windows.Foundation/Windows.Foundation.cs +++ b/cswinrt/strings/additions/Windows.Foundation/Windows.Foundation.cs @@ -969,22 +969,6 @@ private void Complete(IAsyncInfo asyncInfo, Func getResults objRef.Dispose(); } } - } - - public static IAsyncAction AsAsyncAction(this Task source) - { - if (source == null) - throw new ArgumentNullException(nameof(source)); - - return new TaskToAsyncActionAdapter(source, underlyingCancelTokenSource: null); - } - - public static IAsyncOperation AsAsyncOperation(this Task source) - { - if (source == null) - throw new ArgumentNullException(nameof(source)); - - return new TaskToAsyncOperationAdapter(source, underlyingCancelTokenSource: null); } } }