Browse Source

Remove some dead code.

Bart De Smet 6 years ago
parent
commit
001476c67e

+ 0 - 7
Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs

@@ -69,13 +69,6 @@ namespace Tests
             Assert.True(result);
         }
 
-        private static IEnumerable<int> Blocking(ManualResetEvent evt, ManualResetEvent blockingStarted)
-        {
-            blockingStarted.Set();
-            evt.WaitOne();
-            yield return 42;
-        }
-
         [Fact]
         public async Task TakeOneFromSelectMany()
         {

+ 0 - 2
Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.cs

@@ -9,8 +9,6 @@ namespace Tests
 {
     public partial class AsyncTests
     {
-        private const int WaitTimeoutMs = 5000;
-
 #pragma warning disable xUnit1013 // Public method should be marked as test
         public void AssertThrows<E>(Action a)
             where E : Exception

+ 0 - 21
Ix.NET/Source/System.Linq.Async.Tests/System/Linq/AsyncEnumerableTests.cs

@@ -85,26 +85,5 @@ namespace Tests
                     disposeAsync: null)
             );
         }
-
-        private void AssertThrows<E>(Action a, Func<E, bool> assert)
-            where E : Exception
-        {
-            var hasFailed = false;
-
-            try
-            {
-                a();
-            }
-            catch (E e)
-            {
-                Assert.True(assert(e));
-                hasFailed = true;
-            }
-
-            if (!hasFailed)
-            {
-                Assert.True(false);
-            }
-        }
     }
 }