Skip to content

Commit

Permalink
remove broken/unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed May 17, 2012
1 parent ec1a46c commit 1b050f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions queuereader/queuereader.c
Expand Up @@ -245,23 +245,6 @@ void queuereader_finish_task_by_name(const char *finished_task)
json_object_object_add(json_msg, "tasks_left", new_tasks_array);
}

void queuereader_finish_task(int index)
{
struct json_object *new_tasks_array;
struct json_object *tasks;
int i;
const char *task;

// walk the array of tasks_left and skip the one that matches the index specified...
tasks = json_object_object_get(json_msg, "tasks_left");
new_tasks_array = json_object_new_array();
for (i = 0; (i < json_object_array_length(tasks)) && (i != index); i++) {
task = json_object_get_string(json_object_array_get_idx(tasks, i));
json_object_array_add(new_tasks_array, json_object_new_string(task));
}
json_object_object_add(json_msg, "tasks_left", new_tasks_array);
}

void queuereader_source_request(int fd, short what, void *cbarg)
{
struct GlobalData *client_data = (struct GlobalData *)cbarg;
Expand Down
1 change: 0 additions & 1 deletion queuereader/queuereader.h
Expand Up @@ -35,7 +35,6 @@ void queuereader_init(struct json_object *tasks,
void queuereader_finish_message(int return_code);
void queuereader_set_sleeptime_queue_empty_ms(int milliseconds);
struct json_object *queuereader_copy_tasks(struct json_object *input_array);
void queuereader_finish_task(int index);
void queuereader_finish_task_by_name(const char *finished_task);

#endif

0 comments on commit 1b050f0

Please sign in to comment.