Skip to content

Commit

Permalink
Remove resource_id field from get_permissions_data_t
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed Aug 20, 2024
1 parent 5ce67ca commit e3f04d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,6 @@ get_overrides_data_reset (get_overrides_data_t *data)
typedef struct
{
get_data_t get; ///< Get args.
char *resource_id; ///< Resource whose permissions to get.
} get_permissions_data_t;

/**
Expand All @@ -1914,8 +1913,6 @@ typedef struct
static void
get_permissions_data_reset (get_permissions_data_t *data)
{
free (data->resource_id);

get_data_reset (&data->get);
memset (data, 0, sizeof (get_permissions_data_t));
}
Expand Down Expand Up @@ -5471,8 +5468,6 @@ gmp_xml_handle_start_element (/* unused */ GMarkupParseContext* context,
get_data_parse_attributes (&get_permissions_data->get, "permission",
attribute_names,
attribute_values);
append_attribute (attribute_names, attribute_values, "resource_id",
&get_permissions_data->resource_id);
set_client_state (CLIENT_GET_PERMISSIONS);
}
else if (strcasecmp ("GET_PREFERENCES", element_name) == 0)
Expand Down

0 comments on commit e3f04d0

Please sign in to comment.