Permalink
Browse files

remove broken/unused method

  • Loading branch information...
1 parent ec1a46c commit 1b050f0764c5c998eca2588cc207db0d96b4d97b @mreiferson mreiferson committed May 17, 2012
Showing with 0 additions and 18 deletions.
  1. +0 −17 queuereader/queuereader.c
  2. +0 −1 queuereader/queuereader.h
View
@@ -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;
@@ -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.