Not used by any current code, removed.
Last use of the function was seen in
commit 65cfecb0f5344ec92d3f0d3c2ec0538b6b2726e2.
---
lib/guestfs-internal.h | 1 -
lib/inspect.c | 13 -------------
2 files changed, 14 deletions(-)
diff --git a/lib/guestfs-internal.h b/lib/guestfs-internal.h
index 35e0cb8e7..a694be8f5 100644
--- a/lib/guestfs-internal.h
+++ b/lib/guestfs-internal.h
@@ -715,7 +715,6 @@ extern int guestfs_int_set_backend (guestfs_h *g, const char
*method);
/* inspect.c */
extern char *guestfs_int_download_to_tmp (guestfs_h *g, const char *filename, const char
*basename, uint64_t max_size);
extern int guestfs_int_parse_unsigned_int (guestfs_h *g, const char *str);
-extern int guestfs_int_parse_unsigned_int_ignore_trailing (guestfs_h *g, const char
*str);
/* dbdump.c */
typedef int (*guestfs_int_db_dump_callback) (guestfs_h *g, const unsigned char *key,
size_t keylen, const unsigned char *value, size_t valuelen, void *opaque);
diff --git a/lib/inspect.c b/lib/inspect.c
index 501074316..b7c5b6cc7 100644
--- a/lib/inspect.c
+++ b/lib/inspect.c
@@ -118,16 +118,3 @@ guestfs_int_parse_unsigned_int (guestfs_h *g, const char *str)
}
return ret;
}
-
-/* Like parse_unsigned_int, but ignore trailing stuff. */
-int
-guestfs_int_parse_unsigned_int_ignore_trailing (guestfs_h *g, const char *str)
-{
- long ret;
- const int r = xstrtol (str, NULL, 10, &ret, NULL);
- if (r != LONGINT_OK) {
- error (g, _("could not parse integer in version number: %s"), str);
- return -1;
- }
- return ret;
-}
--
2.13.2