Remove microkernel leftovers in ActorSystem (#28933)

* Microkernel removed in Akka 2.4 so removing this without deprecation
  should be alright
This commit is contained in:
Patrik Nordwall 2020-04-16 17:12:25 +02:00 committed by GitHub
parent b4704f7027
commit a7f39ab7cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View file

@ -0,0 +1,5 @@
# leftover from microkernel, removed in Akka 2.4
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.actor.ActorSystem.GlobalHome")
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.actor.ActorSystem.SystemHome")
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.actor.ActorSystem.EnvHome")

View file

@ -170,18 +170,6 @@ object ActorSystem {
val Version: String = akka.Version.current // generated file val Version: String = akka.Version.current // generated file
val EnvHome: Option[String] = System.getenv("AKKA_HOME") match {
case null | "" | "." => None
case value => Some(value)
}
val SystemHome: Option[String] = System.getProperty("akka.home") match {
case null | "" => None
case value => Some(value)
}
val GlobalHome: Option[String] = SystemHome.orElse(EnvHome)
/** /**
* Creates a new ActorSystem with the name "default", * Creates a new ActorSystem with the name "default",
* obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader, * obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,