class Rufus::Scheduler

def do_unschedule (job_id)

def do_unschedule (job_id)
  for i in 0...@pending_jobs.length
    if @pending_jobs[i].job_id == job_id
      @pending_jobs.delete_at i
      return true
    end
  end
    #
    # not using delete_if because it scans the whole list
  do_unschedule_cron_job job_id
end