=all remove unused imports

This commit is contained in:
Johannes Rudolph 2016-02-22 20:18:15 +01:00 committed by Konrad Malawski
parent 4fcf08e7e8
commit b6cbc7f13a
423 changed files with 488 additions and 1223 deletions

View file

@ -23,7 +23,6 @@ import akka.http.impl.util._
import akka.stream.stage.GraphStage
import akka.stream.stage.GraphStageLogic
import akka.stream.stage.{ InHandler, OutHandler }
import akka.stream.impl.fusing.SubSource
/**
* INTERNAL API

View file

@ -12,7 +12,6 @@ import akka.stream.scaladsl._
import akka.stream._
import akka.http.scaladsl.util.FastFuture
import akka.http.scaladsl.model.HttpMethod
import akka.http.impl.util._
import akka.stream.stage.GraphStage
import akka.stream.stage.GraphStageLogic
import akka.stream.stage.InHandler

View file

@ -7,7 +7,6 @@ package akka.http.impl
import akka.NotUsed
import language.implicitConversions
import language.higherKinds
import java.nio.charset.Charset
import com.typesafe.config.Config
import akka.stream.scaladsl.{ Flow, Source }

View file

@ -12,7 +12,6 @@ import akka.http.javadsl.model.ws._
import akka.http.javadsl.settings.{ ConnectionPoolSettings, ClientConnectionSettings, ServerSettings }
import akka.{ NotUsed, stream }
import akka.stream.TLSProtocol._
import scala.language.implicitConversions
import scala.concurrent.Future
import scala.util.Try
import akka.stream.scaladsl.Keep

View file

@ -5,7 +5,6 @@
package akka.http.scaladsl.model
import java.util.{ OptionalLong, Optional }
import java.{ lang jl }
import akka.http.impl.util.{ Rendering, ValueRenderable }
import akka.http.javadsl.{ model jm }
import scala.compat.java8.OptionConverters._
@ -75,4 +74,4 @@ object ContentRange {
/** Java API */
override def getOtherValue: Optional[String] = Optional.of(value)
}
}
}

View file

@ -8,7 +8,7 @@ import java.util.OptionalLong
import language.implicitConversions
import java.io.File
import java.lang.{ Iterable JIterable, Long JLong }
import java.lang.{ Iterable JIterable}
import scala.util.control.NonFatal
import scala.concurrent.Future
import scala.concurrent.duration._
@ -17,7 +17,7 @@ import akka.util.ByteString
import akka.stream.scaladsl._
import akka.stream.stage._
import akka.stream._
import akka.{ NotUsed, japi, stream }
import akka.{ NotUsed, stream }
import akka.http.scaladsl.model.ContentType.{ NonBinary, Binary }
import akka.http.scaladsl.util.FastFuture
import akka.http.javadsl.{ model jm }

View file

@ -4,7 +4,6 @@
package akka.http.scaladsl.model
import language.implicitConversions
import akka.http.impl.util._
import akka.http.javadsl.{ model jm }
import akka.http.impl.util.JavaMapping.Implicits._
@ -477,4 +476,4 @@ object MediaTypes extends ObjectRegistry[(String, String), MediaType] {
val `video/x-sgi-movie` = vid("x-sgi-movie", "movie", "mv")
val `video/webm` = vid("webm", "webm")
// format: ON
}
}

View file

@ -10,7 +10,6 @@ import akka.http.impl.util._
import akka.http.scaladsl.model.WithQValue
import akka.http.javadsl.{ model jm }
import akka.http.impl.util.JavaMapping.Implicits._
import akka.japi
sealed trait LanguageRange extends jm.headers.LanguageRange with ValueRenderable with WithQValue[LanguageRange] {
def qValue: Float
@ -73,4 +72,4 @@ object Language {
new Language(tags.head, immutable.Seq(tags.tail: _*))
} else new Language(compoundTag, immutable.Seq.empty)
def apply(primaryTag: String, subTags: String*): Language = new Language(primaryTag, immutable.Seq(subTags: _*))
}
}

View file

@ -4,7 +4,7 @@
package akka.http.scaladsl.util
import scala.language.{ implicitConversions, higherKinds }
import scala.language.{ higherKinds }
import scala.util.control.NonFatal
import scala.util.{ Failure, Success, Try }
import scala.collection.generic.CanBuildFrom
@ -119,4 +119,4 @@ object FastFuture {
val fb = fn(a.asInstanceOf[A])
for (r fr.fast; b fb.fast) yield r += b
}.fast.map(_.result())
}
}

View file

@ -3,7 +3,7 @@ package akka.http.impl.engine.client
import javax.net.ssl.SSLContext
import akka.http.scaladsl.{ ConnectionContext, Http }
import akka.http.scaladsl.model.{ HttpHeader, HttpResponse, HttpRequest }
import akka.http.scaladsl.model.{ HttpResponse, HttpRequest }
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{ Flow, Sink, Source }
import akka.stream.testkit.{ TestSubscriber, TestPublisher, AkkaSpec, TestUtils, Utils }

View file

@ -18,7 +18,7 @@ import akka.util.ByteString
import akka.http.scaladsl.{ TestUtils, Http }
import akka.http.impl.util.{ SingletonException, StreamUtils }
import akka.http.scaladsl.settings.{ ClientConnectionSettings, ConnectionPoolSettings, ServerSettings }
import akka.stream.{ BidiShape, ActorMaterializer }
import akka.stream.{ ActorMaterializer }
import akka.stream.TLSProtocol._
import akka.stream.testkit.{ TestPublisher, TestSubscriber, AkkaSpec }
import akka.stream.scaladsl._

View file

@ -26,7 +26,6 @@ class ResponseRendererSpec extends FreeSpec with Matchers with BeforeAndAfterAll
akka.event-handlers = ["akka.testkit.TestEventListener"]
akka.loglevel = WARNING""")
implicit val system = ActorSystem(getClass.getSimpleName, testConf)
import system.dispatcher
val ServerOnTheMove = StatusCodes.custom(330, "Server on the move")
implicit val materializer = ActorMaterializer()

View file

@ -13,7 +13,6 @@ import akka.stream.scaladsl.{ Sink, Source, Flow }
import akka.stream.testkit.{ TestSubscriber, TestPublisher }
import akka.testkit.AkkaSpec
import akka.util.ByteString
import org.scalatest.{ Matchers, WordSpec }
import scala.concurrent.duration._
class PrepareRequestsSpec extends AkkaSpec {

View file

@ -9,7 +9,6 @@ import akka.NotUsed
import scala.concurrent.duration._
import scala.util.Random
import org.scalatest.{ Matchers, FreeSpec }
import akka.stream.FlowShape
import akka.stream.scaladsl._
import akka.stream.testkit._
import akka.util.ByteString

View file

@ -9,7 +9,6 @@ import akka.http.impl.engine.ws.WSTestUtils._
import akka.util.ByteString
import org.scalatest.Matchers
import scala.annotation.tailrec
import scala.util.Random
trait WSTestSetupBase extends Matchers {

View file

@ -20,16 +20,13 @@ import org.scalatest.concurrent.Eventually
import java.net.InetSocketAddress
import akka.stream.impl.fusing.GraphStages
import akka.util.ByteString
import akka.http.scaladsl.model.StatusCodes
import akka.stream.testkit.scaladsl.TestSink
import scala.concurrent.Future
import akka.testkit.EventFilter
class WebSocketIntegrationSpec extends AkkaSpec("akka.stream.materializer.debug.fuzzing-mode=off")
with ScalaFutures with ConversionCheckedTripleEquals with Eventually {
implicit val patience = PatienceConfig(3.seconds)
import system.dispatcher
implicit val materializer = ActorMaterializer()
"A WebSocket server" must {

View file

@ -10,12 +10,9 @@ import akka.stream.testkit.Utils
import akka.util.ByteString
import org.scalatest.{ Matchers, FreeSpec }
import akka.http.impl.util._
import akka.http.impl.engine.server.HttpServerTestSetupBase
class WebSocketServerSpec extends FreeSpec with Matchers with WithMaterializerSpec { spec
import WSTestUtils._
"The server-side WebSocket integration should" - {
"establish a websocket connection when the user requests it" - {

View file

@ -8,7 +8,6 @@ import java.util.Optional
import java.util.concurrent.{ CompletionStage, TimeUnit, CompletableFuture }
import akka.NotUsed
import akka.http.impl.util.JavaMapping.HttpsConnectionContext
import akka.http.javadsl.ConnectHttp._
import akka.http.javadsl.model.ws._
import akka.http.javadsl.settings.{ ClientConnectionSettings, ConnectionPoolSettings, ServerSettings }
@ -18,14 +17,12 @@ import akka.event.NoLogging
import akka.http.javadsl.model._
import akka.http.scaladsl.TestUtils
import akka.japi.Function
import akka.stream.{ Materializer, ActorMaterializer }
import akka.stream.{ ActorMaterializer }
import akka.stream.javadsl.{ Source, Flow, Sink, Keep }
import akka.stream.testkit.TestSubscriber
import com.typesafe.config.{ Config, ConfigFactory }
import com.typesafe.config.{ ConfigFactory }
import org.scalatest.{ WordSpec, Matchers, BeforeAndAfterAll }
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.{ Future, Await }
import scala.concurrent.duration._
import scala.util.Try
class HttpExtensionApiSpec extends WordSpec with Matchers with BeforeAndAfterAll with ScalaFutures {

View file

@ -4,11 +4,7 @@
package akka.http.scaladsl
import java.util.concurrent.ConcurrentHashMap
import akka.actor.ActorSystem
import akka.http.impl.engine.client.PoolGateway
import akka.http.impl.settings.HostConnectionPoolSetup
import akka.http.scaladsl.model._
import akka.http.scaladsl.model.HttpMethods._
import akka.stream.ActorMaterializer
@ -16,7 +12,7 @@ import com.typesafe.config.{ Config, ConfigFactory }
import org.scalatest.{ Matchers, WordSpec }
import scala.concurrent.duration._
import scala.concurrent.{ Await, Future }
import scala.concurrent.{ Await }
class ClientSpec extends WordSpec with Matchers {
val testConf: Config = ConfigFactory.parseString("""
@ -27,7 +23,6 @@ class ClientSpec extends WordSpec with Matchers {
akka.log-dead-letters = OFF
akka.http.server.request-timeout = infinite""")
implicit val system = ActorSystem(getClass.getSimpleName, testConf)
import system.dispatcher
implicit val materializer = ActorMaterializer()
"HTTP Client" should {

View file

@ -20,7 +20,6 @@ class MultipartSpec extends WordSpec with Matchers with Inside with BeforeAndAft
akka.event-handlers = ["akka.testkit.TestEventListener"]
akka.loglevel = WARNING""")
implicit val system = ActorSystem(getClass.getSimpleName, testConf)
import system.dispatcher
implicit val materializer = ActorMaterializer()
override def afterAll() = system.terminate()

View file

@ -38,7 +38,6 @@ class HttpModelIntegrationSpec extends WordSpec with Matchers with BeforeAndAfte
akka.event-handlers = ["akka.testkit.TestEventListener"]
akka.loglevel = WARNING""")
implicit val system = ActorSystem(getClass.getSimpleName, testConf)
import system.dispatcher
override def afterAll() = system.terminate()