celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abroekh...@apache.org
Subject svn commit: r1658963 - /celix/trunk/framework/private/src/bundle.c
Date Wed, 11 Feb 2015 13:58:10 GMT
Author: abroekhuis
Date: Wed Feb 11 13:58:10 2015
New Revision: 1658963

URL: http://svn.apache.org/r1658963
Log:
CELIX-219: Removed unused bundle_isUsed function.

Modified:
    celix/trunk/framework/private/src/bundle.c

Modified: celix/trunk/framework/private/src/bundle.c
URL: http://svn.apache.org/viewvc/celix/trunk/framework/private/src/bundle.c?rev=1658963&r1=1658962&r2=1658963&view=diff
==============================================================================
--- celix/trunk/framework/private/src/bundle.c (original)
+++ celix/trunk/framework/private/src/bundle.c Wed Feb 11 13:58:10 2015
@@ -391,26 +391,6 @@ celix_status_t bundle_setPersistentState
     return status;
 }
 
-celix_status_t bundle_isUsed(bundle_pt bundle, bool *used) {
-	bool unresolved = true;
-	array_list_iterator_pt iter = arrayListIterator_create(bundle->modules);
-	while (arrayListIterator_hasNext(iter)) {
-		module_pt module = arrayListIterator_next(iter);
-		if (module_isResolved(module)) {
-			unresolved = false;
-		}
-	}
-	arrayListIterator_destroy(iter);
-	*used = false;
-	iter = arrayListIterator_create(bundle->modules);
-	while (arrayListIterator_hasNext(iter) && !unresolved && !*used) {
-		module_pt module = arrayListIterator_next(iter);
-		module_getDependents(module);
-	}
-	arrayListIterator_destroy(iter);
-	return CELIX_SUCCESS;
-}
-
 celix_status_t bundle_revise(bundle_pt bundle, char * location, char *inputFile) {
 	celix_status_t status = CELIX_SUCCESS;
 



Mime
View raw message