diff options
Diffstat (limited to '')
-rw-r--r-- | src/run_queue.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/run_queue.c b/src/run_queue.c index e1fdf84..184dae5 100644 --- a/src/run_queue.c +++ b/src/run_queue.c @@ -65,41 +65,6 @@ void run_destroy(struct run *entry) free(entry); } -int run_from_msg(struct run **run, const struct msg *msg) -{ - size_t msg_len = msg_get_length(msg); - - if (msg_len != 4) { - log_err("Invalid number of arguments for a message: %zu\n", msg_len); - msg_dump(msg); - return -1; - } - - const char **argv = msg_get_strings(msg); - - int id = 0; - int ret = string_to_int(argv[1], &id); - if (ret < 0) - return ret; - - return run_create(run, id, argv[2], argv[3]); -} - -int run_from_msg_unknown_id(struct run **run, const struct msg *msg) -{ - size_t msg_len = msg_get_length(msg); - - if (msg_len != 3) { - log_err("Invalid number of arguments for a message: %zu\n", msg_len); - msg_dump(msg); - return -1; - } - - const char **argv = msg_get_strings(msg); - /* We don't know the ID yet. */ - return run_create(run, 0, argv[1], argv[2]); -} - int run_get_id(const struct run *entry) { return entry->id; |