Enlightenment CVS committal

Author  : werkt
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        Ecore_Data.h ecore_hash.c 


Log Message:
ecore_hash_goto_first and ecore_hash_next have been removed

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/Ecore_Data.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Ecore_Data.h        5 Jan 2005 06:03:48 -0000       1.9
+++ Ecore_Data.h        5 Jan 2005 07:20:11 -0000       1.10
@@ -296,8 +296,6 @@
    int ecore_hash_set_free_value(Ecore_Hash *hash, Ecore_Free_Cb function);
    void ecore_hash_destroy(Ecore_Hash *hash);
 
-   Ecore_Hash_Node *ecore_hash_goto_first(Ecore_Hash *hash);
-   Ecore_Hash_Node *ecore_hash_next(Ecore_Hash *hash);
    int ecore_hash_for_each_node(Ecore_Hash *hash, Ecore_For_Each for_each_func,
                                 void *user_data);
    Ecore_List *ecore_hash_keys(Ecore_Hash *hash);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_hash.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ecore_hash.c        5 Jan 2005 06:03:48 -0000       1.9
+++ ecore_hash.c        5 Jan 2005 07:20:11 -0000       1.10
@@ -199,70 +199,6 @@
  */
 
 /**
- * Move the current index to the beginning of the given hash for sequential
- * processing
- * @param   hash          The given hash
- * @return  the topmost node on success, NULL otherwise
- * @ingroup Ecore_Data_Hash_ADT_Traverse_Group
- */
-Ecore_Hash_Node *ecore_hash_goto_first(Ecore_Hash *hash)
-{
-       Ecore_Hash_Node *node = NULL;
-
-       CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
-
-       hash->index = 0;
-
-       ECORE_READ_LOCK(hash);
-
-       while( hash->index < ecore_prime_table[hash->index] &&
-                                !hash->buckets[hash->index] )
-               hash->index++;
-
-       if( hash->index < ecore_prime_table[hash->index] )
-               node = ecore_list_goto_first( hash->buckets[hash->index] );
-
-       ECORE_READ_UNLOCK(hash);
-
-       return node;
-}
-
-/**
- * Return the current node and move to the next node of the given hash
- * @param   hash          The given hash
- * @return  the current node on success, NULL if end reached
- * @ingroup Ecore_Data_Hash_ADT_Traverse_Group
- */
-Ecore_Hash_Node *ecore_hash_next(Ecore_Hash *hash)
-{
-       Ecore_Hash_Node *node = NULL;
-
-       CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
-
-       ECORE_READ_LOCK(hash);
-
-       while( hash->index < ecore_prime_table[hash->size] &&
-                                !hash->buckets[hash->index] ) {
-               hash->index++;
-               if( hash->index < ecore_prime_table[hash->size] &&
-                               hash->buckets[hash->index] )
-                       ecore_list_goto_first( hash->buckets[hash->index] );
-       }
-
-       if( hash->index < ecore_prime_table[hash->size] ) {
-               node = ecore_list_next( hash->buckets[hash->index] );
-               if( !node ) {
-                       hash->index++;
-                       node = ecore_hash_next(hash);
-               }
-       }
-
-       ECORE_READ_UNLOCK(hash);
-
-       return node;
-}
-
-/**
  * Runs the @p for_each_func function on each entry in the given hash.
  * @param   hash          The given hash.
  * @param   for_each_func The function that each entry is passed to.




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to