Unused function.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3819 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-02-05 17:08:38 +00:00
parent 8ecc07452e
commit 39a1acaf38
2 changed files with 0 additions and 7 deletions

View File

@ -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 tf_task_allocate_task_id(tf_task_t* task, tf_taskstub_t* stub)
{ {
taskid_t id = 0; taskid_t id = 0;

View File

@ -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); 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_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); 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_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); void tf_task_on_receive_packet(int packetType, const char* begin, size_t length, void* userData);