Schedule.c: remove unused code
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Wed, 11 Apr 2018 07:50:11 +0000 (10:50 +0300)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>
Wed, 11 Apr 2018 07:50:11 +0000 (10:50 +0300)
rts/Schedule.c

index 33b7815..27ef6a6 100644 (file)
@@ -180,9 +180,6 @@ schedule (Capability *initialCapability, Task *task)
   StgThreadReturnCode ret;
   uint32_t prev_what_next;
   bool ready_to_gc;
-#if defined(THREADED_RTS)
-  bool first = true;
-#endif
 
   cap = initialCapability;
 
@@ -292,16 +289,6 @@ schedule (Capability *initialCapability, Task *task)
     // as a result of a console event having been delivered.
 
 #if defined(THREADED_RTS)
-    if (first)
-    {
-    // XXX: ToDo
-    //     // don't yield the first time, we want a chance to run this
-    //     // thread for a bit, even if there are others banging at the
-    //     // door.
-    //     first = false;
-    //     ASSERT_FULL_CAPABILITY_INVARIANTS(cap,task);
-    }
-
     scheduleYield(&cap,task);
 
     if (emptyRunQueue(cap)) continue; // look for work again