[asterisk-commits] rmudgett: branch rmudgett/ao2_enhancements r370736 - /team/rmudgett/ao2_enhan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 1 19:49:48 CDT 2012


Author: rmudgett
Date: Wed Aug  1 19:49:44 2012
New Revision: 370736

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370736
Log:
Removed unnecessary container type element.

Modified:
    team/rmudgett/ao2_enhancements/main/astobj2.c

Modified: team/rmudgett/ao2_enhancements/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ao2_enhancements/main/astobj2.c?view=diff&rev=370736&r1=370735&r2=370736
==============================================================================
--- team/rmudgett/ao2_enhancements/main/astobj2.c (original)
+++ team/rmudgett/ao2_enhancements/main/astobj2.c Wed Aug  1 19:49:44 2012
@@ -734,13 +734,6 @@
 	AO2_CONTAINER_INSERT_NODE_REJECTED,
 };
 
-/* BUGBUG may not be needed */
-enum ao2_container_type {
-	AO2_CONTAINER_TYPE_HASH,
-	AO2_CONTAINER_TYPE_LIST = 0,/* This is a degenerate hash container. */
-	AO2_CONTAINER_TYPE_TREE,
-};
-
 enum ao2_callback_type {
 	DEFAULT,
 	WITH_DATA,
@@ -913,8 +906,6 @@
 	uint32_t options;
 	/*! Number of elements in the container. */
 	int elements;
-	/*! Type of container. BUGBUG may not be needed. */
-	enum ao2_container_type type;
 	/*!
 	 * \brief TRUE if the container is being destroyed.
 	 *
@@ -2301,7 +2292,6 @@
 	self->common.sort_fn = sort_fn;
 	self->common.cmp_fn = cmp_fn;
 	self->common.options = options;
-	self->common.type = AO2_CONTAINER_TYPE_HASH;
 	self->hash_fn = hash_fn ? hash_fn : hash_zero;
 	self->n_buckets = n_buckets;
 




More information about the asterisk-commits mailing list