]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsystemdtest: remove unused 'demo_socket_path'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 17 Feb 2022 13:17:04 +0000 (14:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Feb 2022 13:17:04 +0000 (14:17 +0100)
Commit b56a833243ca7324 removed bunch of old code after which
'demo_socket_path' in 'testActivationFDNames' is no longer used

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/virsystemdtest.c

index 9b513697e0d39f446606e5e4cc0936a6ce481a97..fcd76514e18985da851673631991c351a0e18d56 100644 (file)
@@ -526,15 +526,12 @@ testActivationFDNames(const void *opaque G_GNUC_UNUSED)
     size_t nfds = 0;
     g_autoptr(virSystemdActivation) act = NULL;
     g_auto(virBuffer) names = VIR_BUFFER_INITIALIZER;
-    g_autofree char *demo_socket_path = NULL;
 
     virBufferAddLit(&names, "demo-unix.socket");
 
     if (testActivationCreateFDs(&sockUNIX, &sockIP, &nsockIP) < 0)
         return -1;
 
-    demo_socket_path = virNetSocketGetPath(sockUNIX);
-
     for (i = 0; i < nsockIP; i++)
         virBufferAddLit(&names, ":demo-ip.socket");