Removes commented out code.
@@ -1216,65 +1216,3 @@ static void celix_waitForPendingRegisteredEvents(celix_service_registry_t *regis
}
celixThreadMutex_unlock(&registry->pendingRegisterEvents.mutex);
}
\ No newline at end of file
-
-//static void celix_serviceRegistry_triggerListenerHooks(celix_service_registry_t *registry, const char* serviceName, const celix_properties_t *properties) {
-// //If this is a listener hook, invoke the callback with all current listeners
-// if (strcmp(serviceName, OSGI_FRAMEWORK_LISTENER_HOOK_SERVICE_NAME) == 0) {
-// celix_array_list_t *infos = NULL;
-// service_reference_pt ref = NULL;
-// listener_hook_service_pt hook = NULL;
-//
-// status = CELIX_DO_IF(status, arrayList_create(&infos));
-//
-// if (status == CELIX_SUCCESS) {
-// celix_status_t subs = CELIX_SUCCESS;
-//
-// celixThreadMutex_lock(&framework->serviceListenersLock);
-// for (i = 0; i < arrayList_size(framework->serviceListeners); i++) {
-// celix_fw_service_listener_entry_t *listener = arrayList_get(framework->serviceListeners, i);
-// bundle_context_t *context = NULL;
-// listener_hook_info_pt info = NULL;
-// bundle_context_pt lContext = NULL;
-//
-// subs = CELIX_DO_IF(subs, bundle_getContext(entry->bnd, &context));
-// if (subs == CELIX_SUCCESS) {
-// info = (listener_hook_info_pt) malloc(sizeof(*info));
-// if (info == NULL) {
-// subs = CELIX_ENOMEM;
-// }
-// }
-//
-// subs = CELIX_DO_IF(subs, bundle_getContext(listener->bundle, &lContext));
-// if (subs == CELIX_SUCCESS) {
-// info->context = lContext;
-// info->removed = false;
-// }
-// subs = CELIX_DO_IF(subs, filter_getString(listener->filter, &info->filter));
-//
-// if (subs == CELIX_SUCCESS) {
-// arrayList_add(infos, info);
-// }
-// else{
-// fw_logCode(framework->logger, OSGI_FRAMEWORK_LOG_ERROR, status, "Could not pass all listeners to the hook: %s", serviceName);
-// free(info);
-// }
-// }
-// celixThreadMutex_unlock(&framework->serviceListenersLock);
-//
-// status = CELIX_DO_IF(status, serviceRegistry_getServiceReference(framework->registry, framework->bundle,
-// *registration, &ref));
-// status = CELIX_DO_IF(status, fw_getService(framework,framework->bundle, ref, (const void **) &hook));
-// if (status == CELIX_SUCCESS) {
-// hook->added(hook->handle, infos);
-// }
-// status = CELIX_DO_IF(status, serviceRegistry_ungetService(framework->registry, framework->bundle, ref, NULL));
-// status = CELIX_DO_IF(status, serviceRegistry_ungetServiceReference(framework->registry, framework->bundle, ref));
-//
-// for (int j = 0; j < arrayList_size(infos); j++) {
-// listener_hook_info_pt info = arrayList_get(infos, j);
-// free(info);
-// }
-// arrayList_destroy(infos);
-// }
-// }
-//}
\ No newline at end of file
