Skip to content

Commit 150c3dc

Browse files
committed
apachegh-685: Remove commented out code
1 parent 4822eed commit 150c3dc

File tree

2 files changed

+9
-61
lines changed

2 files changed

+9
-61
lines changed

CHANGES.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,17 @@ limitations under the License.
6969
- It is no longer possible to use the `celix_bundleContext_useService*` functions or `celix::BundleContxt::useService*`
7070
methods on the Celix event thread. The calls will now immediately return and log an error if called on the
7171
Celix event thread.
72-
- Apache Celix filter now use the underlying properties value types for matching. This means that it is more important
73-
to add service properties with the correct type.
72+
- Apache Celix filter now uses the underlying `properties` value types for matching.
73+
This means that it is more important to add service properties with the correct type.
7474
- Celix C++ Exception are now defined in the `celix/exceptions.h` header file. The `celix/Exception.h`
7575
and `celix/IOException.h` are removed.
7676
- The seperator for `CELIX_AUTO_START_0` .. `CELIX_AUTO_START_6` and `CELIX_AUTO_INSTALL` is now a comma instead of a
7777
space.
78-
- The launcher now only has 2 public functions: `celix_launcher_launchAndWait` and `celix_launcher_triggerStop`. The
78+
- The launcher now only has two public functions: `celix_launcher_launchAndWait` and `celix_launcher_triggerStop`. The
7979
other functions are removed.
80+
- The manifest format has been changed to JSON, and the manifest attribute names have been changed.
81+
The old manifest format is no longer supported.
82+
The old manifest attribute names are also no longer defined in `celix_constants.h`.
8083

8184
## New Features
8285

libs/framework/src/framework.c

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -734,62 +734,6 @@ bool celix_framework_isBundleAlreadyInstalled(celix_framework_t* fw, const char*
734734
return alreadyExists;
735735
}
736736

737-
//celix_status_t fw_getDependentBundles(framework_pt framework, bundle_pt exporter, celix_array_list_t** list) {
738-
// celix_status_t status = CELIX_SUCCESS;
739-
//
740-
// if (*list != NULL || exporter == NULL || framework == NULL) {
741-
// return CELIX_ILLEGAL_ARGUMENT;
742-
// }
743-
//
744-
// celix_array_list_t* modules;
745-
// unsigned int modIdx = 0;
746-
// *list = celix_arrayList_create();
747-
//
748-
// modules = bundle_getModules(exporter);
749-
// for (modIdx = 0; modIdx < celix_arrayList_size(modules); modIdx++) {
750-
// celix_module_t* module = celix_arrayList_get(modules, modIdx);
751-
// celix_array_list_t* dependents = module_getDependents(module);
752-
// if (dependents != NULL) {
753-
// unsigned int depIdx = 0;
754-
// for (depIdx = 0; depIdx < celix_arrayList_size(dependents); depIdx++) {
755-
// celix_module_t* dependent = celix_arrayList_get(dependents, depIdx);
756-
// celix_arrayList_add(*list, module_getBundle(dependent));
757-
// }
758-
// celix_arrayList_destroy(dependents);
759-
// }
760-
// }
761-
//
762-
// framework_logIfError(framework->logger, status, NULL, "Cannot get dependent bundles");
763-
//
764-
// return status;
765-
//}
766-
767-
//celix_status_t fw_populateDependentGraph(framework_pt framework, bundle_pt exporter, hash_map_pt* map) {
768-
// celix_status_t status = CELIX_SUCCESS;
769-
//
770-
// if (framework == NULL || exporter == NULL) {
771-
// return CELIX_ILLEGAL_ARGUMENT;
772-
// }
773-
//
774-
// celix_array_list_t* dependents = NULL;
775-
// if ((status = fw_getDependentBundles(framework, exporter, &dependents)) == CELIX_SUCCESS) {
776-
// if (dependents != NULL) {
777-
// unsigned int depIdx = 0;
778-
// for (depIdx = 0; depIdx < celix_arrayList_size(dependents); depIdx++) {
779-
// if (!hashMap_containsKey(*map, celix_arrayList_get(dependents, depIdx))) {
780-
// hashMap_put(*map, celix_arrayList_get(dependents, depIdx), celix_arrayList_get(dependents, depIdx));
781-
// fw_populateDependentGraph(framework, (bundle_pt)celix_arrayList_get(dependents, depIdx), map);
782-
// }
783-
// }
784-
// celix_arrayList_destroy(dependents);
785-
// }
786-
// }
787-
//
788-
// framework_logIfError(framework->logger, status, NULL, "Cannot populate dependent graph");
789-
//
790-
// return status;
791-
//}
792-
793737
celix_status_t fw_registerService(framework_pt framework, service_registration_pt *registration, long bndId, const char* serviceName, const void* svcObj, celix_properties_t *properties) {
794738
celix_status_t status = CELIX_SUCCESS;
795739
char *error = NULL;
@@ -1936,7 +1880,8 @@ static long celix_framework_installAndStartBundleInternal(celix_framework_t *fw,
19361880
if (!forcedAsync) {
19371881
celix_framework_waitForBundleEvents(fw, bundleId);
19381882
}
1939-
framework_logIfError(fw->logger, status, NULL, "Failed to install bundle '%s'", bundleLoc);
1883+
const char* action = autoStart ? "install and start" : "install";
1884+
framework_logIfError(fw->logger, status, NULL, "Failed to %s bundle '%s'", action, bundleLoc);
19401885

19411886
return bundleId;
19421887
}
@@ -2231,7 +2176,7 @@ static void celix_framework_printCelixErrForBundleEntry(celix_framework_t* frame
22312176
celix_status_t celix_framework_startBundleEntry(celix_framework_t* framework, celix_bundle_entry_t* bndEntry) {
22322177
assert(!celix_framework_isCurrentThreadTheEventLoop(framework));
22332178
celix_status_t status = CELIX_SUCCESS;
2234-
const char* error = "";
2179+
const char* error = NULL;
22352180
const char* name = "";
22362181
celix_module_t* module = NULL;
22372182
celix_bundle_context_t* context = NULL;

0 commit comments

Comments
 (0)