From 105ed9cb264eb3569b5ae0d65ac2fd8cb636f8e8 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Sun, 21 May 2017 14:05:05 +0200 Subject: wip, trying to get something that could be tested --- kamon-core/src/main/scala/kamon/ReporterRegistry.scala | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'kamon-core/src/main/scala/kamon/ReporterRegistry.scala') diff --git a/kamon-core/src/main/scala/kamon/ReporterRegistry.scala b/kamon-core/src/main/scala/kamon/ReporterRegistry.scala index b42c5abe..98bde946 100644 --- a/kamon-core/src/main/scala/kamon/ReporterRegistry.scala +++ b/kamon-core/src/main/scala/kamon/ReporterRegistry.scala @@ -134,21 +134,6 @@ class ReporterRegistryImpl(metrics: RecorderRegistryImpl, initialConfig: Config) }(ExecutionContext.fromExecutor(registryExecutionContext)) } - /** - * Creates a thread factory that assigns the specified name to all created Threads. - */ - private def threadFactory(name: String): ThreadFactory = - new ThreadFactory { - val defaultFactory = Executors.defaultThreadFactory() - - override def newThread(r: Runnable): Thread = { - val thread = defaultFactory.newThread(r) - thread.setName(name) - thread - } - } - - private case class ReporterEntry( @volatile var isActive: Boolean = true, id: Long, -- cgit v1.2.3