Update weighted_scheduler.cpp

remove useless code