From d4f5396ece9c16c2fc9c963e3de5e6c9cb7a5077 Mon Sep 17 00:00:00 2001 From: "Ross A. Baker" Date: Fri, 14 Jun 2024 10:58:48 -0400 Subject: [PATCH] Remove unused "dirtyStuff" from test suite --- .../internal/Slf4jLoggerInternalSuite.scala | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/slf4j/src/test/scala/org/typelevel/log4cats/slf4j/internal/Slf4jLoggerInternalSuite.scala b/slf4j/src/test/scala/org/typelevel/log4cats/slf4j/internal/Slf4jLoggerInternalSuite.scala index 9e81d1d7..1942bedb 100644 --- a/slf4j/src/test/scala/org/typelevel/log4cats/slf4j/internal/Slf4jLoggerInternalSuite.scala +++ b/slf4j/src/test/scala/org/typelevel/log4cats/slf4j/internal/Slf4jLoggerInternalSuite.scala @@ -18,34 +18,10 @@ package org.typelevel.log4cats.slf4j package internal import cats.effect.IO -import java.util.concurrent.Executors -import java.util.concurrent.ThreadFactory import org.slf4j.MDC import munit.CatsEffectSuite -import scala.concurrent.ExecutionContext -import scala.concurrent.ExecutionContextExecutorService class Slf4jLoggerInternalSuite extends CatsEffectSuite { - - object dirtyStuff { - - def namedSingleThreadExecutionContext(name: String): ExecutionContextExecutorService = - ExecutionContext.fromExecutorService( - Executors.newSingleThreadExecutor(new ThreadFactory() { - def newThread(r: Runnable): Thread = new Thread(r, name) - }) - ) - - def killThreads(threads: List[ExecutionContextExecutorService]) = threads.foreach { thread => - try thread.shutdownNow() - catch { - case e: Throwable => - Console.err.println("Couldn't shutdown thread") - e.printStackTrace() - } - } - } - test("Slf4jLoggerInternal resets after logging") { val variable = "foo" val initial = "yellow"