remove unused lobby NbHooks socket message
This commit is contained in:
parent
401eccf6e0
commit
58023a604b
|
@ -121,9 +121,6 @@ private[lobby] final class Lobby(
|
|||
case Resync =>
|
||||
socket ! HookIds(HookRepo.vector.map(_.id))
|
||||
|
||||
case Lobby.SendNbHooks =>
|
||||
socket ! NbHooks(HookRepo.size)
|
||||
|
||||
case msg@HookSub(member, true) =>
|
||||
socket ! AllHooksFor(
|
||||
member,
|
||||
|
@ -180,8 +177,6 @@ private object Lobby {
|
|||
|
||||
private case class WithPromise[A](value: A, promise: Promise[Unit])
|
||||
|
||||
private object SendNbHooks
|
||||
|
||||
def start(
|
||||
system: ActorSystem,
|
||||
name: String,
|
||||
|
@ -190,7 +185,6 @@ private object Lobby {
|
|||
|
||||
val ref = system.actorOf(Props(instance), name = name)
|
||||
system.scheduler.schedule(15 seconds, resyncIdsPeriod, ref, actorApi.Resync)
|
||||
system.scheduler.schedule(10 seconds, 2 seconds, ref, SendNbHooks)
|
||||
system.scheduler.scheduleOnce(7 seconds) {
|
||||
lila.common.ResilientScheduler(
|
||||
every = broomPeriod,
|
||||
|
|
|
@ -120,7 +120,6 @@ private[lobby] final class Socket(
|
|||
withActiveMember(uid)(_ push msg)
|
||||
}
|
||||
}
|
||||
case NbHooks(count) => notifyAllAsync(makeMessage("nb_hooks", count))
|
||||
|
||||
case lila.hub.actorApi.StreamsOnAir(html) => notifyAllAsync(makeMessage("streams", html))
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ private[lobby] case class JoinSeek(userId: String, seek: Seek, game: Game, creat
|
|||
private[lobby] case class Join(uid: String, user: Option[User], blocking: Set[String], mobile: Boolean)
|
||||
private[lobby] case object Resync
|
||||
private[lobby] case class HookIds(ids: Vector[String])
|
||||
private[lobby] case class NbHooks(count: Int)
|
||||
|
||||
private[lobby] case class SetIdle(uid: String, value: Boolean)
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@ module.exports = function(env) {
|
|||
this.currentGame = env.currentGame;
|
||||
this.perfIcons = env.perfIcons;
|
||||
|
||||
this.nbHooks = env.nbHooks;
|
||||
|
||||
hookRepo.initAll(this);
|
||||
seekRepo.initAll(this);
|
||||
|
||||
|
|
|
@ -28,10 +28,6 @@ module.exports = function(send, ctrl) {
|
|||
},
|
||||
reload_seeks: function() {
|
||||
if (ctrl.vm.tab === 'seeks') xhr.seeks().then(ctrl.setSeeks);
|
||||
},
|
||||
nb_hooks: function(nb) {
|
||||
ctrl.nbHooks = nb;
|
||||
m.redraw();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue