Blame SOURCES/0025-channel-main-Remove-unused-declaration.patch

76100f
From 41c8a60e5e9451080863d2f87bb0f5007a71cc34 Mon Sep 17 00:00:00 2001
76100f
From: Frediano Ziglio <freddy77@gmail.com>
76100f
Date: Tue, 4 Aug 2020 15:50:03 +0100
76100f
Subject: [PATCH] channel-main: Remove unused declaration
76100f
76100f
OldRedMigrationBegin is not used. Last usage removed in
76100f
76100f
  commit f944ad6935f12efe47f78cbde1c5e6db31442597
76100f
76100f
    More cleanup for old protocol support
76100f
76100f
    Support for protocol version 1 was dropped in commit f77a1d50.
76100f
76100f
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
76100f
---
76100f
 src/channel-main.c | 10 ----------
76100f
 1 file changed, 10 deletions(-)
76100f
76100f
diff --git a/src/channel-main.c b/src/channel-main.c
76100f
index e944771..3dd94a2 100644
76100f
--- a/src/channel-main.c
76100f
+++ b/src/channel-main.c
76100f
@@ -2326,16 +2326,6 @@ static gboolean main_migrate_handshake_done(gpointer data)
76100f
     return FALSE;
76100f
 }
76100f
 
76100f
-#ifdef __GNUC__
76100f
-typedef struct __attribute__ ((__packed__)) OldRedMigrationBegin {
76100f
-#else
76100f
-typedef struct __declspec(align(1)) OldRedMigrationBegin {
76100f
-#endif
76100f
-    uint16_t port;
76100f
-    uint16_t sport;
76100f
-    char host[0];
76100f
-} OldRedMigrationBegin;
76100f
-
76100f
 /* main context */
76100f
 static gboolean migrate_connect(gpointer data)
76100f
 {
76100f
-- 
76100f
2.28.0
76100f