aboutsummaryrefslogtreecommitdiffstats
path: root/community/engrampa/engrampa-remove-unused-variable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/engrampa/engrampa-remove-unused-variable.patch')
-rw-r--r--community/engrampa/engrampa-remove-unused-variable.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/engrampa/engrampa-remove-unused-variable.patch b/community/engrampa/engrampa-remove-unused-variable.patch
new file mode 100644
index 0000000000..5e9f50c928
--- /dev/null
+++ b/community/engrampa/engrampa-remove-unused-variable.patch
@@ -0,0 +1,35 @@
+--- a/src/glib-utils.c
++++ b/src/glib-utils.c
+@@ -568,22 +568,6 @@
+ }
+
+
+-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,
+--- a/src/glib-utils.h
++++ b/src/glib-utils.h
+@@ -66,7 +66,6 @@
+ 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);