[PATCH 5/5] virrandommock: Drop virRandomGenerateWWN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After previous commit, there's no functional difference between
real virRandomGenerateWWN() and the mocked version. Drop the mock
then.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tests/virrandommock.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/tests/virrandommock.c b/tests/virrandommock.c
index 2673230cf7..17c55f4c60 100644
--- a/tests/virrandommock.c
+++ b/tests/virrandommock.c
@@ -47,14 +47,6 @@ uint64_t virRandomBits(int nbits)
     return ret;
 }
 
-int virRandomGenerateWWN(char **wwn,
-                         const char *virt_type G_GNUC_UNUSED)
-{
-    *wwn = g_strdup_printf("5100000%09llx",
-                           (unsigned long long)virRandomBits(36));
-    return 0;
-}
-
 #else /* WIN32 */
 /* Can't mock on WIN32 */
 #endif
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux