]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vbox: remove VBoxCGlueTerm
authorJán Tomko <jtomko@redhat.com>
Tue, 22 Sep 2020 20:38:34 +0000 (22:38 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 24 Sep 2020 09:19:06 +0000 (11:19 +0200)
cppcheck reports:
  src/vbox/vbox_XPCOMCGlue.c:226:21: style:
  The statement 'if (hVBoxXPCOMC!=NULL) hVBoxXPCOMC=NULL' is
  logically equivalent to 'hVBoxXPCOMC=NULL'.
  [duplicateConditionalAssign]

It does not matter anyway because this function
is never called.

Fixes: e1506cb4eb7eab96e7ded27a23f0d8ac9697ac2a
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/vbox/vbox_XPCOMCGlue.c
src/vbox/vbox_XPCOMCGlue.h

index 3cbb6791109ec6e395c13aa04a44e5c6aef41cd8..2936ff0edb6e201379a691db3164775ddaa53d5f 100644 (file)
@@ -217,25 +217,6 @@ VBoxCGlueInit(unsigned int *version)
 }
 
 
-/**
- * Terminate the C glue library.
- */
-void
-VBoxCGlueTerm(void)
-{
-    if (hVBoxXPCOMC != NULL) {
-#if 0 /* VBoxRT.so doesn't like being reloaded. See @bugref{3725}. */
-        dlclose(g_hVBoxXPCOMC);
-#endif
-        hVBoxXPCOMC = NULL;
-    }
-
-    pVBoxFuncs_v2_2 = NULL;
-    g_pfnGetFunctions = NULL;
-}
-
-
-
 /*
  * In XPCOM an array is represented by 1) a pointer to an array of pointers
  * that point to the items and 2) an unsigned int representing the number of
index 517b02393f9defe1f13c5f3757a5711f9ae57830..d0e579482e9b33aa773b2118ad50f37e813cad09 100644 (file)
@@ -36,7 +36,6 @@
 extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions;
 
 int VBoxCGlueInit(unsigned int *version);
-void VBoxCGlueTerm(void);
 
 typedef struct _vboxArray vboxArray;