]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Remove VIR_FILE_*_SEPARATOR*
authorFabiano Fidêncio <fidencio@redhat.com>
Wed, 18 Dec 2019 20:13:16 +0000 (21:13 +0100)
committerFabiano Fidêncio <fidencio@redhat.com>
Wed, 18 Dec 2019 22:11:50 +0000 (23:11 +0100)
None of those are used and we should prefer using the ones provided by
GLib, as G_DIR_SEPARATOR, G_DIR_SEPARATOR_S, G_SEARCHPATH_SEPARATOR, and
G_SEARCHPATH_SEPARATOR_S.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/util/virfile.h

index 3fd179581363d3efc911cbdd79fe80ca90fef832..264b12c03de53b3436c185ce154b86732058c236 100644 (file)
@@ -278,25 +278,6 @@ char *virFileBuildPath(const char *dir,
                        const char *ext) G_GNUC_WARN_UNUSED_RESULT;
 
 
-#ifdef WIN32
-/* On Win32, the canonical directory separator is the backslash, and
- * the search path separator is the semicolon. Note that also the
- * (forward) slash works as directory separator.
- */
-# define VIR_FILE_DIR_SEPARATOR '\\'
-# define VIR_FILE_DIR_SEPARATOR_S "\\"
-# define VIR_FILE_PATH_SEPARATOR ';'
-# define VIR_FILE_PATH_SEPARATOR_S ";"
-
-#else  /* !WIN32 */
-
-# define VIR_FILE_DIR_SEPARATOR '/'
-# define VIR_FILE_DIR_SEPARATOR_S "/"
-# define VIR_FILE_PATH_SEPARATOR ':'
-# define VIR_FILE_PATH_SEPARATOR_S ":"
-
-#endif /* !WIN32 */
-
 int virFileAbsPath(const char *path,
                    char **abspath) G_GNUC_WARN_UNUSED_RESULT;
 void virFileRemoveLastComponent(char *path);