bt2c::Logger: remove unused cLevel() method
[babeltrace.git] / src / plugins / utils / trimmer / trimmer.c
index afb1cf48ba9f52aca10ae3c16ab2151c6cd95dff..d13a9fef3d4227f3abc7b741c2f2796e7c096501 100644 (file)
@@ -173,7 +173,7 @@ bool compile_and_match(const char *pattern, const char *string, GMatchInfo **mat
                /*
                 * g_regex_match allocates `*match_info` even if it returns
                 * FALSE.  If there's no match, we have no use for it, so free
-                * it immediatly and don't return it to the caller.
+                * it immediately and don't return it to the caller.
                 */
                g_match_info_free(*match_info);
                *match_info = NULL;
@@ -425,7 +425,6 @@ end:
  */
 static
 int set_bound_from_param(struct trimmer_comp *trimmer_comp,
-               const char *param_name __attribute__((unused)),
                const bt_value *param,
                struct trimmer_bound *bound, bool is_gmt)
 {
@@ -552,7 +551,7 @@ bt_component_class_initialize_method_status init_trimmer_comp_from_params(
 
         value = bt_value_map_borrow_entry_value_const(params, "begin");
        if (value) {
-               if (set_bound_from_param(trimmer_comp, "begin", value,
+               if (set_bound_from_param(trimmer_comp, value,
                                &trimmer_comp->begin, trimmer_comp->is_gmt)) {
                        /* set_bound_from_param() logs errors */
                        status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;
@@ -565,7 +564,7 @@ bt_component_class_initialize_method_status init_trimmer_comp_from_params(
 
         value = bt_value_map_borrow_entry_value_const(params, "end");
        if (value) {
-               if (set_bound_from_param(trimmer_comp, "end", value,
+               if (set_bound_from_param(trimmer_comp, value,
                                &trimmer_comp->end, trimmer_comp->is_gmt)) {
                        /* set_bound_from_param() logs errors */
                        status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR;
This page took 0.024685 seconds and 4 git commands to generate.