diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-27 00:54:23 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-27 01:04:01 +0100 |
commit | 9e0fe56dbbc8eccca4d289bdd77adfe03a1ea5b2 (patch) | |
tree | a93879a29526fd8a0f48736e07fbaf4e5d515b2b | |
parent | f18a8b281377ced3408d80b263bec0cb98beff03 (diff) | |
download | libqmi-9e0fe56dbbc8eccca4d289bdd77adfe03a1ea5b2.tar.gz |
build-aux,codegen: clear array method not needed
Seems to be a leftover from a previous iteration. This method is not
required because we can no longer have arrays of arrays.
-rw-r--r-- | build-aux/qmi-codegen/VariableArray.py | 1 | ||||
-rw-r--r-- | src/libqmi-glib/qmi-helpers.c | 7 | ||||
-rw-r--r-- | src/libqmi-glib/qmi-helpers.h | 3 |
3 files changed, 0 insertions, 11 deletions
diff --git a/build-aux/qmi-codegen/VariableArray.py b/build-aux/qmi-codegen/VariableArray.py index 477f0c05..9ddbec07 100644 --- a/build-aux/qmi-codegen/VariableArray.py +++ b/build-aux/qmi-codegen/VariableArray.py @@ -38,7 +38,6 @@ class VariableArray(Variable): # The array and its contents need to get disposed self.needs_dispose = True - self.clear_method = 'qmi_helpers_clear_array' # We need to know whether the variable comes in an Input container or in # an Output container, as we should not dump the element clear() helper method diff --git a/src/libqmi-glib/qmi-helpers.c b/src/libqmi-glib/qmi-helpers.c index 33587faf..4d93342c 100644 --- a/src/libqmi-glib/qmi-helpers.c +++ b/src/libqmi-glib/qmi-helpers.c @@ -701,13 +701,6 @@ qmi_helpers_clear_string (gchar **value) g_free (*value); } -void -qmi_helpers_clear_array (GArray **value) -{ - if (value && *value) - g_array_unref (*value); -} - /******************************************************************************/ #if !GLIB_CHECK_VERSION(2,54,0) diff --git a/src/libqmi-glib/qmi-helpers.h b/src/libqmi-glib/qmi-helpers.h index 26eef9c5..14fa6234 100644 --- a/src/libqmi-glib/qmi-helpers.h +++ b/src/libqmi-glib/qmi-helpers.h @@ -93,9 +93,6 @@ gboolean qmi_helpers_list_links (GFile *sysfs_file, G_GNUC_INTERNAL void qmi_helpers_clear_string (gchar **value); -G_GNUC_INTERNAL -void qmi_helpers_clear_array (GArray **value); - static inline gfloat QMI_GFLOAT_SWAP_LE_BE (gfloat in) { |