Skip to content

Commit

Permalink
random is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Jan 8, 2024
1 parent 8341a4e commit 05145d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/jvm/src/main/scala/cats/effect/unsafe/WorkerThread.scala
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,6 @@ private final class WorkerThread(
* code path can be exercised is through `IO.delay`, which already handles exceptions.
*/
override def blockOn[T](thunk: => T)(implicit permission: CanAwait): T = {
val rnd = random

if (blocking) {
// This `WorkerThread` is already inside an enclosing blocking region.
// There is no need to spawn another `WorkerThread`. Instead, directly
Expand Down

0 comments on commit 05145d9

Please sign in to comment.