Remove weight calculation in TaskLoop
Remove unused method