mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Remove the now-unused parser_t::job_create
This commit is contained in:
parent
7a75e7341b
commit
8ed08872b9
2 changed files with 0 additions and 15 deletions
12
parser.cpp
12
parser.cpp
|
@ -773,18 +773,6 @@ void parser_t::job_add(job_t *job)
|
||||||
this->my_job_list.push_front(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)
|
bool parser_t::job_remove(job_t *j)
|
||||||
{
|
{
|
||||||
job_list_t::iterator iter = std::find(my_job_list.begin(), my_job_list.end(), j);
|
job_list_t::iterator iter = std::find(my_job_list.begin(), my_job_list.end(), j);
|
||||||
|
|
3
parser.h
3
parser.h
|
@ -269,9 +269,6 @@ private:
|
||||||
parser_t(const parser_t&);
|
parser_t(const parser_t&);
|
||||||
parser_t& operator=(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. */
|
/** Adds a job to the beginning of the job list. */
|
||||||
void job_add(job_t *job);
|
void job_add(job_t *job);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue