mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
ed12b030d4
commit
c727ed4224
@ -1994,7 +1994,6 @@ virFileGetMountSubtree;
|
||||
virFileGetXAttr;
|
||||
virFileGetXAttrQuiet;
|
||||
virFileInData;
|
||||
virFileIsAbsPath;
|
||||
virFileIsCDROM;
|
||||
virFileIsDir;
|
||||
virFileIsExecutable;
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user