util: Remove virFileIsAbsPath()

The function is no longer used since commit faf2d811f3.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Fabiano Fidêncio 2019-12-18 20:43:25 +01:00
parent ed12b030d4
commit c727ed4224
3 changed files with 0 additions and 21 deletions

View File

@ -1994,7 +1994,6 @@ virFileGetMountSubtree;
virFileGetXAttr;
virFileGetXAttrQuiet;
virFileInData;
virFileIsAbsPath;
virFileIsCDROM;
virFileIsDir;
virFileIsExecutable;

View File

@ -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.

View File

@ -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);