diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 797c15bb42ab6f3f1020568caa9734fd93f15d72..a7b1ef23bcb654e9b5acc17b82a99e3f3b9ee144 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -1994,7 +1994,6 @@ virFileGetMountSubtree; virFileGetXAttr; virFileGetXAttrQuiet; virFileInData; -virFileIsAbsPath; virFileIsCDROM; virFileIsDir; virFileIsExecutable; diff --git a/src/util/virfile.c b/src/util/virfile.c index 624bd9e3d02541430301b480f27a64a0b857ec08..b72d18b3d2e9447c43ac58dc822b57df4ad46574 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -3178,25 +3178,6 @@ virFileOpenTty(int *ttymaster G_GNUC_UNUSED, } #endif /* WIN32 */ -bool -virFileIsAbsPath(const char *path) -{ - if (!path) - return false; - - if (VIR_FILE_IS_DIR_SEPARATOR(path[0])) - return true; - -#ifdef WIN32 - if (g_ascii_isalpha(path[0]) && - path[1] == ':' && - VIR_FILE_IS_DIR_SEPARATOR(path[2])) - return true; -#endif - - return false; -} - /* * Creates an absolute path for a potentially relative path. * Return 0 if the path was not relative, or on success. diff --git a/src/util/virfile.h b/src/util/virfile.h index 80641f763ad9139fec241786359ecd2da217bdd0..550d06ce945d7584120ea2f462188246bcf39338 100644 --- a/src/util/virfile.h +++ b/src/util/virfile.h @@ -299,7 +299,6 @@ char *virFileBuildPath(const char *dir, #endif /* !WIN32 */ -bool virFileIsAbsPath(const char *path); int virFileAbsPath(const char *path, char **abspath) G_GNUC_WARN_UNUSED_RESULT; void virFileRemoveLastComponent(char *path);