/* Removes all cases of @attribute from @info if it exists.  */
void g_file_info_remove_attribute(GFileInfo *info, const char *attribute)
/* Removes all cases of @attribute from @info if it exists.  */
void g_file_info_remove_attribute(GFileInfo *info, const char *attribute)
{
  guint32 attr_id;
  GFileAttribute *attrs;
  int i;
  g_return_if_fail (G_IS_FILE_INFO (info));
  g_return_if_fail (attribute != NULL && *attribute != '\0');
  attr_id = lookup_attribute (attribute);
  i = g_file_info_find_place (info, attr_id);
  attrs = (GFileAttribute *)info->attributes->data;
  if (i < info->attributes->len &&
      attrs[i].attribute == attr_id)
    {
      _g_file_attribute_value_clear (&attrs[i].value);
      g_array_remove_index (info->attributes, i);
    }
}