error.c: clean-up: remove dead error cause clean-up code
[babeltrace.git] / src / lib / error.c
index bd8259ab71057103385d75b711ffd59a5508007a..149579f441298e1b2012d6c4b0715531fc36a890 100644 (file)
@@ -155,8 +155,6 @@ int init_error_cause(struct bt_error_cause *cause,
                goto end;
        }
 
-       BT_LIB_LOGD("Initialized error cause: %!+r", cause);
-
 end:
        return ret;
 }
@@ -496,7 +494,6 @@ int bt_error_append_cause_from_unknown(struct bt_error *error,
        cause = NULL;
 
 end:
-       destroy_error_cause(cause);
        return status;
 }
 
@@ -529,10 +526,6 @@ int bt_error_append_cause_from_component(
        cause = NULL;
 
 end:
-       if (cause) {
-               destroy_error_cause(&cause->base);
-       }
-
        return status;
 }
 
@@ -566,10 +559,6 @@ int bt_error_append_cause_from_component_class(
        cause = NULL;
 
 end:
-       if (cause) {
-               destroy_error_cause(&cause->base);
-       }
-
        return status;
 }
 
@@ -602,10 +591,6 @@ int bt_error_append_cause_from_message_iterator(
        cause = NULL;
 
 end:
-       if (cause) {
-               destroy_error_cause(&cause->base);
-       }
-
        return status;
 }
 
This page took 0.023883 seconds and 4 git commands to generate.