From 39a1acaf383e7e15cbaf2e6e260fdb78a03273b3 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 5 Feb 2022 17:08:38 +0000 Subject: [PATCH] Unused function. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3819 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/task.c | 6 ------ src/task.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/task.c b/src/task.c index ae999780..8266d13e 100644 --- a/src/task.c +++ b/src/task.c @@ -1206,12 +1206,6 @@ void tf_task_reject_promise(tf_task_t* task, promiseid_t promise, JSValue value) } } -JSValue tf_task_get_promise(tf_task_t* task, promiseid_t promise) -{ - promise_t* it = _tf_task_find_promise(task, promise); - return it ? it->values[0] : JS_NULL; -} - taskid_t tf_task_allocate_task_id(tf_task_t* task, tf_taskstub_t* stub) { taskid_t id = 0; diff --git a/src/task.h b/src/task.h index 5364a85b..0f770706 100644 --- a/src/task.h +++ b/src/task.h @@ -60,7 +60,6 @@ const char* tf_task_get_name(tf_task_t* task); JSValue tf_task_allocate_promise(tf_task_t* task, promiseid_t* out_promise); void tf_task_reject_promise(tf_task_t* task, promiseid_t promise, JSValue error); void tf_task_resolve_promise(tf_task_t* task, promiseid_t promise, JSValue result); -JSValue tf_task_get_promise(tf_task_t* task, promiseid_t promise); void tf_task_send_promise_message(tf_task_t* from, tf_taskstub_t* to, tf_task_message_t type, promiseid_t promise, JSValue payload); void tf_task_on_receive_packet(int packetType, const char* begin, size_t length, void* userData);