Browse Source

Removing more dead code.

Bart De Smet 8 years ago
parent
commit
215dbd25d6
1 changed files with 1 additions and 24 deletions
  1. 1 24
      Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs

+ 1 - 24
Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Bugs.cs

@@ -21,26 +21,6 @@ namespace Tests
             };
         }
 
-#if !NO_THREAD
-        static IEnumerable<int> Xs(Action a)
-        {
-            try
-            {
-                var rnd = new Random();
-
-                while (true)
-                {
-                    yield return rnd.Next(0, 43);
-                    Thread.Sleep(rnd.Next(0, 500));
-                }
-            }
-            finally
-            {
-                a();
-            }
-        }
-#endif
-
         [Fact]
         public async void CorrectDispose()
         {
@@ -195,10 +175,7 @@ namespace Tests
                 _dispose = dispose;
             }
 
-            public T Current
-            {
-                get { return _current(); }
-            }
+            public T Current => _current();
 
             public void Dispose() => _dispose();