From 41216d5ad4c722e2ad9f15c968af454fc7566d5e Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 18 Oct 2018 15:43:06 +0200 Subject: Cleanup: Remove more #if 0 blocks Continuation of https://developer.blender.org/D3802 Reviewers: brecht Differential Revision: https://developer.blender.org/D3808 --- source/blender/blenlib/intern/BLI_ghash.c | 51 ------------------------------- 1 file changed, 51 deletions(-) (limited to 'source/blender/blenlib/intern/BLI_ghash.c') diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index ec75c140159..071a7e2dc0e 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -1108,57 +1108,6 @@ void BLI_ghashIterator_free(GHashIterator *ghi) MEM_freeN(ghi); } -/* inline functions now */ -#if 0 -/** - * Retrieve the key from an iterator. - * - * \param ghi The iterator. - * \return The key at the current index, or NULL if the - * iterator is done. - */ -void *BLI_ghashIterator_getKey(GHashIterator *ghi) -{ - return ghi->curEntry->key; -} - -/** - * Retrieve the value from an iterator. - * - * \param ghi The iterator. - * \return The value at the current index, or NULL if the - * iterator is done. - */ -void *BLI_ghashIterator_getValue(GHashIterator *ghi) -{ - return ghi->curEntry->val; -} - -/** - * Retrieve the value from an iterator. - * - * \param ghi The iterator. - * \return The value at the current index, or NULL if the - * iterator is done. - */ -void **BLI_ghashIterator_getValue_p(GHashIterator *ghi) -{ - return &ghi->curEntry->val; -} - -/** - * Determine if an iterator is done (has reached the end of - * the hash table). - * - * \param ghi The iterator. - * \return True if done, False otherwise. - */ -bool BLI_ghashIterator_done(GHashIterator *ghi) -{ - return ghi->curEntry == NULL; -} -#endif - /** \} */ /* -------------------------------------------------------------------- */ -- cgit v1.2.3