Skip to content

Commit

Permalink
sched: remove unused member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
frankist authored and asaezper committed Feb 25, 2025
1 parent b0f9dd7 commit e4ace72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/scheduler/policy/scheduler_policy_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ std::unique_ptr<scheduler_policy> srsran::create_scheduler_strategy(const schedu
du_cell_index_t cell_index)
{
if (std::holds_alternative<time_rr_scheduler_expert_config>(expert_cfg_.strategy_cfg)) {
return std::make_unique<scheduler_time_rr>(expert_cfg_, cell_index);
return std::make_unique<scheduler_time_rr>(expert_cfg_);
}
if (std::holds_alternative<time_qos_scheduler_expert_config>(expert_cfg_.strategy_cfg)) {
return std::make_unique<scheduler_time_qos>(expert_cfg_, cell_index);
Expand Down
5 changes: 1 addition & 4 deletions lib/scheduler/policy/scheduler_time_rr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@

using namespace srsran;

scheduler_time_rr::scheduler_time_rr(const scheduler_ue_expert_config& expert_cfg_, du_cell_index_t cell_index_) :
expert_cfg(expert_cfg_), cell_index(cell_index_)
{
}
scheduler_time_rr::scheduler_time_rr(const scheduler_ue_expert_config& expert_cfg_) : expert_cfg(expert_cfg_) {}

void scheduler_time_rr::compute_ue_dl_priorities(slot_point pdcch_slot,
slot_point pdsch_slot,
Expand Down
2 changes: 1 addition & 1 deletion lib/scheduler/policy/scheduler_time_rr.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace srsran {
class scheduler_time_rr : public scheduler_policy
{
public:
scheduler_time_rr(const scheduler_ue_expert_config& expert_cfg_, du_cell_index_t cell_index);
scheduler_time_rr(const scheduler_ue_expert_config& expert_cfg_);

void add_ue(du_ue_index_t ue_index) override {}

Expand Down

0 comments on commit e4ace72

Please sign in to comment.