Cleanup: remove plugin-common.h
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 13 Jun 2019 15:09:29 +0000 (11:09 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 13 Jun 2019 23:47:13 +0000 (19:47 -0400)
It was only used to define 'UNUSED_VAR' which we can use literally.

Change-Id: Idf84f6ecee711e2caf4b7d68f5e6f598b0aca22e
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1425
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/Makefile.am
src/plugins/ctf/fs-src/fs.c
src/plugins/ctf/lttng-live/lttng-live.c
src/plugins/lttng-utils/debug-info/debug-info.c
src/plugins/plugins-common.h [deleted file]
src/plugins/text/pretty/pretty.c
src/plugins/utils/counter/counter.c
src/plugins/utils/dummy/dummy.c
src/plugins/utils/muxer/muxer.c
src/plugins/utils/trimmer/trimmer.c

index 9b23e3c41c86ed738d33246052ef330f7d4929ec..0c53f76492667303b6b82022719c9ba8c3bdf757 100644 (file)
@@ -3,5 +3,3 @@ SUBDIRS = utils text ctf
 if ENABLE_DEBUG_INFO
 SUBDIRS += lttng-utils
 endif
-
-noinst_HEADERS = plugins-common.h
index 5ff6d352a723d4f2763a5c8836aca9266e97bba0..0361018b0d5143ff4d14e64f185dae09057c81e2 100644 (file)
@@ -28,7 +28,6 @@
 #include "common/common.h"
 #include <babeltrace2/babeltrace.h>
 #include "compat/uuid.h"
-#include "plugins/plugins-common.h"
 #include <glib.h>
 #include "common/assert.h"
 #include <inttypes.h>
@@ -1928,7 +1927,7 @@ end:
 BT_HIDDEN
 bt_self_component_status ctf_fs_init(
                bt_self_component_source *self_comp,
-               const bt_value *params, UNUSED_VAR void *init_method_data)
+               const bt_value *params, __attribute__((unused)) void *init_method_data)
 {
        struct ctf_fs_component *ctf_fs;
        bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
index 1a24a734f64565ca0b3d528eed3b3797fd5ec63d..b7df57b9e109074b3398a71b31621cf5fde862ba 100644 (file)
@@ -39,7 +39,6 @@
 #include <babeltrace2/babeltrace.h>
 #include "compat/compiler.h"
 #include <babeltrace2/types.h>
-#include "plugins/plugins-common.h"
 
 #include "data-stream.h"
 #include "metadata.h"
@@ -1564,7 +1563,7 @@ end:
 BT_HIDDEN
 bt_self_component_status lttng_live_component_init(
                bt_self_component_source *self_comp,
-               const bt_value *params, UNUSED_VAR void *init_method_data)
+               const bt_value *params, __attribute__((unused)) void *init_method_data)
 {
        struct lttng_live_component *lttng_live;
        bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
index 297be248460474a06eea7690b4d3b5d8b8ab0e88..a2e0643a9c7967c68a46f35dfa36dae123f129a2 100644 (file)
@@ -30,7 +30,6 @@
 #include "logging.h"
 
 #include <glib.h>
-#include "plugins/plugins-common.h"
 
 #include "common/assert.h"
 #include "common/common.h"
@@ -1757,7 +1756,7 @@ int init_from_params(struct debug_info_component *debug_info_component,
 BT_HIDDEN
 bt_self_component_status debug_info_comp_init(
                bt_self_component_filter *self_comp,
-               const bt_value *params, UNUSED_VAR void *init_method_data)
+               const bt_value *params, __attribute__((unused)) void *init_method_data)
 {
        int ret;
        struct debug_info_component *debug_info_comp;
diff --git a/src/plugins/plugins-common.h b/src/plugins/plugins-common.h
deleted file mode 100644 (file)
index c7377bf..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef PLUGINS_COMMON_H
-#define PLUGINS_COMMON_H
-
-/*
- * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/*
- * UNUSED_VAR: tag a variable or parameter as explicitly unused so that
- *             the compiler does not warn.
- */
-#define UNUSED_VAR __attribute__((unused))
-
-#endif /* PLUGINS_COMMON_H */
index 9db8770e8866c47e418c7e249e6aaa36b88e2bca..cef026094bf00eb400e49645421ab060fb1c6fef 100644 (file)
@@ -29,7 +29,6 @@
 #include <babeltrace2/babeltrace.h>
 #include "compat/compiler.h"
 #include "common/common.h"
-#include "plugins/plugins-common.h"
 #include <stdio.h>
 #include <stdbool.h>
 #include <glib.h>
@@ -645,7 +644,7 @@ BT_HIDDEN
 bt_self_component_status pretty_init(
                bt_self_component_sink *comp,
                const bt_value *params,
-               UNUSED_VAR void *init_method_data)
+               __attribute__((unused)) void *init_method_data)
 {
        bt_self_component_status ret;
        struct pretty_component *pretty = create_pretty();
index 200b9aa752866a68ba96443df5f78f787de902fb..a6c539365133de52b1e284c6cfcd9ab11dce701a 100644 (file)
@@ -26,7 +26,6 @@
 #include <babeltrace2/babeltrace.h>
 #include "common/macros.h"
 #include "common/common.h"
-#include "plugins/plugins-common.h"
 #include "common/assert.h"
 #include <inttypes.h>
 #include <stdint.h>
@@ -139,7 +138,7 @@ BT_HIDDEN
 bt_self_component_status counter_init(
                bt_self_component_sink *component,
                const bt_value *params,
-               UNUSED_VAR void *init_method_data)
+               __attribute__((unused)) void *init_method_data)
 {
        bt_self_component_status ret;
        struct counter *counter = g_new0(struct counter, 1);
index d21f26a39d784cc1fd0b29da300e8188830e538a..a2a35cb9b7d0e3e9e25ee828203ab04fa0691c8f 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <babeltrace2/babeltrace.h>
 #include "common/macros.h"
-#include "plugins/plugins-common.h"
 #include "common/assert.h"
 #include "dummy.h"
 
@@ -52,7 +51,7 @@ BT_HIDDEN
 bt_self_component_status dummy_init(
                bt_self_component_sink *component,
                const bt_value *params,
-               UNUSED_VAR void *init_method_data)
+               __attribute__((unused)) void *init_method_data)
 {
        bt_self_component_status ret;
        struct dummy *dummy = g_new0(struct dummy, 1);
index 827532d93e05734e637ea0875fce08f5fc0c140a..fc7252729026ba431929ffcafff795f5ff30c5d5 100644 (file)
@@ -30,7 +30,6 @@
 #include "lib/graph/component.h"
 #include "lib/graph/message/iterator.h"
 #include "lib/graph/connection.h"
-#include "plugins/plugins-common.h"
 #include <glib.h>
 #include <stdbool.h>
 #include <inttypes.h>
index b8cc481a5b79fb34112b7a5023e1ecec9ef48b55..1275750d7a40dd78b50d4574a0d87e412fe48d4e 100644 (file)
@@ -28,7 +28,6 @@
 #include "compat/time.h"
 #include <babeltrace2/babeltrace.h>
 #include "common/common.h"
-#include "plugins/plugins-common.h"
 #include "common/assert.h"
 #include <stdint.h>
 #include <inttypes.h>
This page took 0.030362 seconds and 4 git commands to generate.