Eliminate yet more calls to principal_parser()

In particular, remove job_t::from_job_id
This commit is contained in:
ridiculousfish
2020-02-08 12:47:13 -08:00
parent f1f97b6476
commit fba3c83ba5
8 changed files with 21 additions and 23 deletions

View File

@@ -364,6 +364,7 @@ class parser_t : public std::enable_shared_from_this<parser_t> {
/// Return the job with the specified job id. If id is 0 or less, return the last job used.
job_t *job_get(job_id_t job_id);
const job_t *job_get(job_id_t job_id) const;
/// Returns the job with the given pid.
job_t *job_get_from_pid(pid_t pid) const;