From: Enlightenment S. <no-...@en...> - 2011-03-05 20:08:36
|
Log: Kill a memory waster, relic of ancient code, no longer needed. Author: rui Date: 2011-03-05 12:08:27 -0800 (Sat, 05 Mar 2011) New Revision: 57533 Trac: http://trac.enlightenment.org/e/changeset/57533 Modified: trunk/elmdentica/src/elmdentica.c Modified: trunk/elmdentica/src/elmdentica.c =================================================================== --- trunk/elmdentica/src/elmdentica.c 2011-03-05 18:36:08 UTC (rev 57532) +++ trunk/elmdentica/src/elmdentica.c 2011-03-05 20:08:27 UTC (rev 57533) @@ -76,8 +76,6 @@ int current_timeline=-1; time_t now; -Eina_Hash * bubble2status=NULL; - aStatus *reply_as=NULL; long long int user_id=0; const char *url=NULL; @@ -298,8 +296,8 @@ } static int ed_mark_favorite(void *data, int argc, char **argv, char **azColName) { - Evas_Object *bubble = (Evas_Object*)data; - aStatus *as = eina_hash_find(bubble2status, &bubble); + Elm_Genlist_Item *bubble = (Elm_Genlist_Item*)data; + aStatus *as = elm_genlist_item_data_get(bubble); char *screen_name=NULL, *password=NULL, *proto=NULL, *domain=NULL, *base_url=NULL; int port=0, id=0; @@ -1492,8 +1490,6 @@ li = elm_genlist_item_prepend(gui.timeline, &itc1, as, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); as->li = li; - - eina_hash_add(bubble2status, &li, as); } static int add_status_from_db(void *data, int argc, char **argv, char **azColName) { @@ -1651,12 +1647,6 @@ if(fromdb) { - if(bubble2status) { - eina_hash_free(bubble2status); - bubble2status = NULL; - } - - bubble2status = eina_hash_pointer_new(NULL); if(!statusHash) statusHash = eina_hash_string_superfast_new(status_hash_data_free); if(!userHash) userHash = eina_hash_string_superfast_new(user_hash_data_free); |