diff options
author | rbuj <[email protected]> | 2019-08-24 12:21:31 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-08-27 15:47:27 +0200 |
commit | 66076cf781963cd1b781ba8e42d32efcf8fa9180 (patch) | |
tree | 2fda291c5c57b452efbb8f32760cf8f6d943aafa /src | |
parent | 4bd9da61ce6f9fffbab42bb373e5e91149403d98 (diff) | |
download | engrampa-66076cf781963cd1b781ba8e42d32efcf8fa9180.tar.bz2 engrampa-66076cf781963cd1b781ba8e42d32efcf8fa9180.tar.xz |
glib-utils: Remove unused function - g_ptr_array_copy
closes https://github.com/mate-desktop/engrampa/issues/283
Diffstat (limited to 'src')
-rw-r--r-- | src/glib-utils.c | 16 | ||||
-rw-r--r-- | src/glib-utils.h | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/glib-utils.c b/src/glib-utils.c index 1b0f1f9..a4f8d26 100644 --- a/src/glib-utils.c +++ b/src/glib-utils.c @@ -568,22 +568,6 @@ get_time_string (time_t time) } -GPtrArray * -g_ptr_array_copy (GPtrArray *array) -{ - GPtrArray *new_array; - - if (array == NULL) - return NULL; - - new_array = g_ptr_array_sized_new (array->len); - memcpy (new_array->pdata, array->pdata, array->len * sizeof (gpointer)); - new_array->len = array->len; - - return new_array; -} - - void g_ptr_array_free_full (GPtrArray *array, GFunc free_func, diff --git a/src/glib-utils.h b/src/glib-utils.h index b03f7f9..59a327f 100644 --- a/src/glib-utils.h +++ b/src/glib-utils.h @@ -66,7 +66,6 @@ const char * get_last_field (const char *line, int last_field); int n_fields (char **str_array); char * get_time_string (time_t time); -GPtrArray * g_ptr_array_copy (GPtrArray *array); void g_ptr_array_free_full (GPtrArray *array, GFunc func, gpointer user_data); |