CleanUp: Remove thread_id from `TaskFreeFunction`

It isn't used; cleanup related to {D7475}
This commit is contained in:
Jeroen Bakker 2020-04-21 15:57:51 +02:00
parent 2d6ad88466
commit b08e18ff36
3 changed files with 4 additions and 6 deletions

View File

@ -71,7 +71,7 @@ typedef enum TaskPriority {
typedef struct TaskPool TaskPool;
typedef void (*TaskRunFunction)(TaskPool *__restrict pool, void *taskdata, int threadid);
typedef void (*TaskFreeFunction)(TaskPool *__restrict pool, void *taskdata, int threadid);
typedef void (*TaskFreeFunction)(TaskPool *__restrict pool, void *taskdata);
TaskPool *BLI_task_pool_create(TaskScheduler *scheduler, void *userdata, TaskPriority priority);
TaskPool *BLI_task_pool_create_background(TaskScheduler *scheduler,

View File

@ -230,11 +230,11 @@ typedef struct TaskThread {
} TaskThread;
/* Helper */
BLI_INLINE void task_data_free(Task *task, const int thread_id)
BLI_INLINE void task_data_free(Task *task, const int UNUSED(thread_id))
{
if (task->free_taskdata) {
if (task->freedata) {
task->freedata(task->pool, task->taskdata, thread_id);
task->freedata(task->pool, task->taskdata);
}
else {
MEM_freeN(task->taskdata);

View File

@ -1306,9 +1306,7 @@ static void filelist_cache_preview_runf(TaskPool *__restrict pool,
// printf("%s: End (%d)...\n", __func__, threadid);
}
static void filelist_cache_preview_freef(TaskPool *__restrict UNUSED(pool),
void *taskdata,
int UNUSED(threadid))
static void filelist_cache_preview_freef(TaskPool *__restrict UNUSED(pool), void *taskdata)
{
FileListEntryPreviewTaskData *preview_taskdata = taskdata;
FileListEntryPreview *preview = preview_taskdata->preview;