The function is no longer used since commit
faf2d811f3e9a4.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
virFileGetXAttr;
virFileGetXAttrQuiet;
virFileInData;
-virFileIsAbsPath;
virFileIsCDROM;
virFileIsDir;
virFileIsExecutable;
}
#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.
#endif /* !WIN32 */
-bool virFileIsAbsPath(const char *path);
int virFileAbsPath(const char *path,
char **abspath) G_GNUC_WARN_UNUSED_RESULT;
void virFileRemoveLastComponent(char *path);