From d1751088e7cffcc686e51665f1c4f5e4f454bbb2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 19 May 2011 14:22:20 +0200 Subject: move vector of pd's cod to cli, its only user Signed-off-by: Denys Vlasenko --- src/include/report/problem_data.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/include') diff --git a/src/include/report/problem_data.h b/src/include/report/problem_data.h index 1481654f..0f38a789 100644 --- a/src/include/report/problem_data.h +++ b/src/include/report/problem_data.h @@ -45,6 +45,7 @@ typedef struct problem_item problem_item; char *format_problem_item(struct problem_item *item); + /* In-memory problem data structure and accessors */ typedef GHashTable problem_data_t; @@ -75,23 +76,6 @@ const char *get_problem_item_content_or_NULL(problem_data_t *problem_data, const const char *get_problem_item_content_or_die(problem_data_t *problem_data, const char *key); -/* Vector of these structures */ - -typedef GPtrArray vector_of_problem_data_t; - -static inline problem_data_t *get_problem_data(vector_of_problem_data_t *vector, unsigned i) -{ - return (problem_data_t *)g_ptr_array_index(vector, i); -} - -vector_of_problem_data_t *new_vector_of_problem_data(void); -static inline void free_vector_of_problem_data(vector_of_problem_data_t *vector) -{ - if (vector) - g_ptr_array_free(vector, TRUE); -} - - /* Conversions between in-memory and on-disk formats */ void load_problem_data_from_dump_dir(problem_data_t *problem_data, struct dump_dir *dd); -- cgit