[PATCH 36/40] util: virstring: Remove virStringSplit

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

 



Callers were replaced by g_strsplit.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/libvirt_private.syms | 1 -
 src/util/virstring.c     | 9 ---------
 src/util/virstring.h     | 5 -----
 3 files changed, 15 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 535776166d..7d05d25106 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -3251,7 +3251,6 @@ virStringReplace;
 virStringSearch;
 virStringSortCompare;
 virStringSortRevCompare;
-virStringSplit;
 virStringSplitCount;
 virStringStripControlChars;
 virStringStripIPv6Brackets;
diff --git a/src/util/virstring.c b/src/util/virstring.c
index c7276fa7c4..fa12b7dcd7 100644
--- a/src/util/virstring.c
+++ b/src/util/virstring.c
@@ -123,15 +123,6 @@ virStringSplitCount(const char *string,
 }


-char **
-virStringSplit(const char *string,
-               const char *delim,
-               size_t max_tokens)
-{
-    return virStringSplitCount(string, delim, max_tokens, NULL);
-}
-
-
 /**
  * virStringListJoin:
  * @strings: a NULL-terminated array of strings to join
diff --git a/src/util/virstring.h b/src/util/virstring.h
index db6f2d4795..18793a34b4 100644
--- a/src/util/virstring.h
+++ b/src/util/virstring.h
@@ -28,11 +28,6 @@ char **virStringSplitCount(const char *string,
                            size_t *tokcount)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);

-char **virStringSplit(const char *string,
-                      const char *delim,
-                      size_t max_tokens)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-
 char *virStringListJoin(const char **strings,
                         const char *delim)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-- 
2.29.2




[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