changeset 12444:410462ce25ba

[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 <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 09 Dec 2005 13:16:09 +0000
parents 488a305f9aff
children de7f34c005ce
files src/status.c
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }