From 8ed08872b92fda01e4a1f8c2ff159085e76a6f4b Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 14 Apr 2014 12:40:17 -0700 Subject: [PATCH] Remove the now-unused parser_t::job_create --- parser.cpp | 12 ------------ parser.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/parser.cpp b/parser.cpp index eebab3493..b75b1ec79 100644 --- a/parser.cpp +++ b/parser.cpp @@ -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); diff --git a/parser.h b/parser.h index 8ffe82c8a..14095a861 100644 --- a/parser.h +++ b/parser.h @@ -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);