Remove the now-unused parser_t::job_create

This commit is contained in:
ridiculousfish 2014-04-14 12:40:17 -07:00
parent 7a75e7341b
commit 8ed08872b9
2 changed files with 0 additions and 15 deletions

View file

@ -773,18 +773,6 @@ void parser_t::job_add(job_t *job)
this->my_job_list.push_front(job);
}
job_t *parser_t::job_create(const io_chain_t &io)
{
job_t *res = new job_t(acquire_job_id(), io);
this->my_job_list.push_front(res);
job_set_flag(res,
JOB_CONTROL,
(job_control_mode==JOB_CONTROL_ALL) ||
((job_control_mode == JOB_CONTROL_INTERACTIVE) && (get_is_interactive())));
return res;
}
bool parser_t::job_remove(job_t *j)
{
job_list_t::iterator iter = std::find(my_job_list.begin(), my_job_list.end(), j);

View file

@ -269,9 +269,6 @@ private:
parser_t(const parser_t&);
parser_t& operator=(const parser_t&);
/** Create a job */
job_t *job_create(const io_chain_t &io);
/** Adds a job to the beginning of the job list. */
void job_add(job_t *job);