Remove Scheduler::init().

This commit is contained in:
levlam 2023-03-27 18:08:06 +03:00
parent f2a406690e
commit ee0922d23d
2 changed files with 2 additions and 6 deletions

View File

@ -78,9 +78,7 @@ class Scheduler {
Scheduler &operator=(Scheduler &&) = delete;
~Scheduler();
void init();
void init(int32 id, std::vector<std::shared_ptr<MpscPollableQueue<EventFull>>> outbound, Callback *callback);
void clear();
int32 sched_id() const;
int32 sched_count() const;
@ -172,6 +170,8 @@ class Scheduler {
};
friend class ServiceActor;
void clear();
void do_event(ActorInfo *actor, Event &&event);
void enter_actor(ActorInfo *actor_info);

View File

@ -58,10 +58,6 @@ inline SchedulerGuard Scheduler::get_const_guard() {
return SchedulerGuard(this, false);
}
inline void Scheduler::init() {
init(0, {}, nullptr);
}
inline int32 Scheduler::sched_id() const {
return sched_id_;
}