[PATCH 1/2] remove unused function virTimeFieldsNow

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

 



From: YueWenyuan <yuewenyuan@xxxxxxxxxx>

remove unused function virTimeFieldsNow() in src/libvirt_private.syms,
src/util/virtime.c and src/util/virtime.h

Signed-off-by: YueWenyuan <yuewenyuan@xxxxxxxxxx>
Signed-off-by: Zhang Bo <oscar.zhangbo@xxxxxxxxxx>
---
 src/libvirt_private.syms |  1 -
 src/util/virtime.c       | 21 ---------------------
 src/util/virtime.h       |  2 --
 3 files changed, 24 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 8c50ea2..43b041f 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2230,7 +2230,6 @@ virThreadPoolSendJob;
 
 
 # util/virtime.h
-virTimeFieldsNow;
 virTimeFieldsNowRaw;
 virTimeFieldsThen;
 virTimeLocalOffsetFromUTC;
diff --git a/src/util/virtime.c b/src/util/virtime.c
index 9d365d5..7013caa 100644
--- a/src/util/virtime.c
+++ b/src/util/virtime.c
@@ -242,27 +242,6 @@ int virTimeMillisNow(unsigned long long *now)
 
 
 /**
- * virTimeFieldsNowRaw:
- * @fields: filled with current time fields
- *
- * Retrieves the current time, in broken-down field format.
- * The time is always in UTC.
- *
- * Returns 0 on success, -1 on error with errno reported
- */
-int virTimeFieldsNow(struct tm *fields)
-{
-    unsigned long long now;
-
-    if (virTimeMillisNow(&now) < 0)
-        return -1;
-
-    virTimeFieldsThen(now, fields);
-    return 0;
-}
-
-
-/**
  * virTimeStringNow:
  *
  * Creates a string containing a formatted timestamp
diff --git a/src/util/virtime.h b/src/util/virtime.h
index 8ebad38..86dddc1 100644
--- a/src/util/virtime.h
+++ b/src/util/virtime.h
@@ -56,8 +56,6 @@ int virTimeStringThenRaw(unsigned long long when, char *buf)
  */
 int virTimeMillisNow(unsigned long long *now)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
-int virTimeFieldsNow(struct tm *fields)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 char *virTimeStringNow(void);
 char *virTimeStringThen(unsigned long long when);
 
-- 
1.7.12.4


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]