[PATCH 2/2] remove unused function virTimeFieldsNowRaw

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

 



From: YueWenyuan <yuewenyuan@xxxxxxxxxx>

remove unused function virTimeFieldsNowRaw() 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       | 22 ----------------------
 src/util/virtime.h       |  2 --
 3 files changed, 25 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 43b041f..800fe95 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2230,7 +2230,6 @@ virThreadPoolSendJob;
 
 
 # util/virtime.h
-virTimeFieldsNowRaw;
 virTimeFieldsThen;
 virTimeLocalOffsetFromUTC;
 virTimeMillisNow;
diff --git a/src/util/virtime.c b/src/util/virtime.c
index 7013caa..f127166 100644
--- a/src/util/virtime.c
+++ b/src/util/virtime.c
@@ -78,28 +78,6 @@ int virTimeMillisNowRaw(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 set
- */
-int virTimeFieldsNowRaw(struct tm *fields)
-{
-    unsigned long long now;
-
-    if (virTimeMillisNowRaw(&now) < 0)
-        return -1;
-
-    virTimeFieldsThen(now, fields);
-
-    return 0;
-}
-
-
 #define SECS_PER_HOUR   (60 * 60)
 #define SECS_PER_DAY    (SECS_PER_HOUR * 24)
 #define DIV(a, b) ((a) / (b) - ((a) % (b) < 0))
diff --git a/src/util/virtime.h b/src/util/virtime.h
index 86dddc1..12c1303 100644
--- a/src/util/virtime.h
+++ b/src/util/virtime.h
@@ -44,8 +44,6 @@ void virTimeFieldsThen(unsigned long long when, struct tm *fields)
  * errno on failure */
 int virTimeMillisNowRaw(unsigned long long *now)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
-int virTimeFieldsNowRaw(struct tm *fields)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 int virTimeStringNowRaw(char *buf)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 int virTimeStringThenRaw(unsigned long long when, char *buf)
-- 
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]