[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] migration: Remove unused socket_send_channel_create_sync
From: |
dave |
Subject: |
[PATCH 3/3] migration: Remove unused socket_send_channel_create_sync |
Date: |
Wed, 18 Sep 2024 01:02:07 +0100 |
From: "Dr. David Alan Gilbert" <dave@treblig.org>
socket_send_channel_create_sync only use was removed by
d0edb8a173 ("migration: Create the postcopy preempt channel asynchronously")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
---
migration/socket.c | 18 ------------------
migration/socket.h | 1 -
2 files changed, 19 deletions(-)
diff --git a/migration/socket.c b/migration/socket.c
index 9ab89b1e08..5ec65b8c03 100644
--- a/migration/socket.c
+++ b/migration/socket.c
@@ -42,24 +42,6 @@ void socket_send_channel_create(QIOTaskFunc f, void *data)
f, data, NULL, NULL);
}
-QIOChannel *socket_send_channel_create_sync(Error **errp)
-{
- QIOChannelSocket *sioc = qio_channel_socket_new();
-
- if (!outgoing_args.saddr) {
- object_unref(OBJECT(sioc));
- error_setg(errp, "Initial sock address not set!");
- return NULL;
- }
-
- if (qio_channel_socket_connect_sync(sioc, outgoing_args.saddr, errp) < 0) {
- object_unref(OBJECT(sioc));
- return NULL;
- }
-
- return QIO_CHANNEL(sioc);
-}
-
struct SocketConnectData {
MigrationState *s;
char *hostname;
diff --git a/migration/socket.h b/migration/socket.h
index 46c233ecd2..04ebbe95a1 100644
--- a/migration/socket.h
+++ b/migration/socket.h
@@ -22,7 +22,6 @@
#include "qemu/sockets.h"
void socket_send_channel_create(QIOTaskFunc f, void *data);
-QIOChannel *socket_send_channel_create_sync(Error **errp);
void socket_start_incoming_migration(SocketAddress *saddr, Error **errp);
--
2.46.0
- [PATCH 0/3] Migration deadcode removal, dave, 2024/09/17
- [PATCH 1/3] migration: Remove migrate_cap_set, dave, 2024/09/17
- [PATCH 2/3] migration: Remove unused zero-blocks capability, dave, 2024/09/17
- Re: [PATCH 2/3] migration: Remove unused zero-blocks capability, Markus Armbruster, 2024/09/18
- Re: [PATCH 2/3] migration: Remove unused zero-blocks capability, Peter Xu, 2024/09/18
- Re: [PATCH 2/3] migration: Remove unused zero-blocks capability, Markus Armbruster, 2024/09/19
- Re: [PATCH 2/3] migration: Remove unused zero-blocks capability, Fabiano Rosas, 2024/09/19
- Re: [PATCH 2/3] migration: Remove unused zero-blocks capability, Dr. David Alan Gilbert, 2024/09/19
- Re: [PATCH 2/3] migration: Remove unused zero-blocks capability, Peter Xu, 2024/09/19
[PATCH 3/3] migration: Remove unused socket_send_channel_create_sync,
dave <=