mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:32:27 +08:00
Remove the now-unused parser_t::job_create
This commit is contained in:
parent
7a75e7341b
commit
8ed08872b9
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);
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user