# HG changeset patch # User Stu Tomlinson # Date 1134134169 0 # Node ID 410462ce25ba0bcd5e99094f0d5403c3d6d88a31 # Parent 488a305f9affd6a97bcd662fb30ffaf4999a6941 [gaim-migrate @ 14751] There's no need to explicitly make sure this attribute exists - if it doesn't the hash table lookup will return NULL anyway committer: Tailor Script diff -r 488a305f9aff -r 410462ce25ba src/status.c --- a/src/status.c Fri Dec 09 13:01:44 2005 +0000 +++ b/src/status.c Fri Dec 09 13:16:09 2005 +0000 @@ -962,20 +962,9 @@ GaimValue * gaim_status_get_attr_value(const GaimStatus *status, const char *id) { - GaimStatusType *status_type; - GaimStatusAttr *attr; - g_return_val_if_fail(status != NULL, NULL); g_return_val_if_fail(id != NULL, NULL); - status_type = gaim_status_get_type(status); - - /* Make sure this attribute exists. */ - attr = gaim_status_type_get_attr(status_type, id); - - if (attr == NULL) - return NULL; - return (GaimValue *)g_hash_table_lookup(status->attr_values, id); }