Explorar o código

Remove a few unused variables and functions

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Ruben Kerkhof %!s(int64=10) %!d(string=hai) anos
pai
achega
da3288217c
Modificáronse 4 ficheiros con 0 adicións e 14 borrados
  1. 0 2
      exec/sync.c
  2. 0 4
      test/testcpg.c
  3. 0 4
      test/testcpgzc.c
  4. 0 4
      test/testzcgc.c

+ 0 - 2
exec/sync.c

@@ -147,8 +147,6 @@ static struct service_entry my_service_list[SERVICES_COUNT_MAX];
 
 static int my_service_list_entries = 0;
 
-static const struct memb_ring_id sync_ring_id;
-
 static void (*sync_synchronization_completed) (void);
 
 static void sync_deliver_fn (

+ 0 - 4
test/testcpg.c

@@ -237,10 +237,6 @@ static cpg_model_v1_data_t model_data = {
 	.flags =                     CPG_MODEL_V1_DELIVER_INITIAL_TOTEM_CONF,
 };
 
-static void sigintr_handler (int signum) __attribute__((noreturn));
-static void sigintr_handler (int signum) {
-	exit (0);
-}
 static struct cpg_name group_name;
 
 #define retrybackoff(counter) {    \

+ 0 - 4
test/testcpgzc.c

@@ -154,10 +154,6 @@ static cpg_callbacks_t callbacks = {
 	.cpg_confchg_fn =            ConfchgCallback,
 };
 
-static void sigintr_handler (int signum) __attribute__((noreturn));
-static void sigintr_handler (int signum) {
-	exit (0);
-}
 static struct cpg_name group_name;
 
 int main (int argc, char *argv[]) {

+ 0 - 4
test/testzcgc.c

@@ -151,10 +151,6 @@ static cpg_callbacks_t callbacks = {
 	.cpg_confchg_fn =            ConfchgCallback,
 };
 
-static void sigintr_handler (int signum) __attribute__((noreturn));
-static void sigintr_handler (int signum) {
-	exit (0);
-}
 static struct cpg_name group_name;
 
 int main (int argc, char *argv[]) {