remove unused Cron object
This commit is contained in:
parent
d78b97d27d
commit
30093e7fcf
|
@ -1,32 +0,0 @@
|
|||
package lila.app
|
||||
|
||||
import lila.socket.actorApi._
|
||||
import lila.hub.actorApi._
|
||||
|
||||
import akka.actor._
|
||||
import akka.pattern.{ ask, pipe }
|
||||
import scala.concurrent.duration._
|
||||
import play.api.libs.concurrent._
|
||||
import play.api.Mode
|
||||
|
||||
object Cron {
|
||||
|
||||
def start(system: ActorSystem) {
|
||||
|
||||
// implicit val timeout = makeTimeout(500 millis)
|
||||
// val actors = Env.hub.actor
|
||||
// val sockets = Env.hub.socket
|
||||
|
||||
// message(5 seconds) {
|
||||
// Env.tournament.organizer -> tournament.CreatedTournaments
|
||||
// }
|
||||
|
||||
// message(3 seconds) {
|
||||
// Env.tournament.organizer -> tournament.StartedTournaments
|
||||
// }
|
||||
|
||||
// message(3 seconds) {
|
||||
// Env.tournament.organizer -> tournament.StartPairings
|
||||
// }
|
||||
}
|
||||
}
|
|
@ -9,7 +9,6 @@ final class Env(config: Config, system: ActorSystem, isServer: Boolean) {
|
|||
|
||||
private val RendererName = config getString "app.renderer.name"
|
||||
private val RouterName = config getString "app.router.name"
|
||||
private val CronEnabled = config getBoolean "app.cron.enabled"
|
||||
|
||||
lazy val preloader = new mashup.Preload(
|
||||
fisherman = Env.lobby.fisherman,
|
||||
|
@ -29,7 +28,6 @@ final class Env(config: Config, system: ActorSystem, isServer: Boolean) {
|
|||
Env.teamSearch, Env.forumSearch, Env.message, Env.socket, Env.timeline)
|
||||
|
||||
if (Env.ai.isServer) println("Running as AI server")
|
||||
else if (CronEnabled) Cron start system
|
||||
}
|
||||
|
||||
object Env {
|
||||
|
|
Loading…
Reference in a new issue