These functions are now unused.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/libvirt_private.syms | 2 --
src/util/virfile.c | 20 --------------------
src/util/virfile.h | 3 ---
3 files changed, 25 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 6b7261b987..8c0a68d1bf 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2202,8 +2202,6 @@ virFileLinkPointsTo;
virFileLock;
virFileLoopDeviceAssociate;
virFileMakeParentPath;
-virFileMakePath;
-virFileMakePathWithMode;
virFileMoveMount;
virFileNBDDeviceAssociate;
virFileOpenAs;
diff --git a/src/util/virfile.c b/src/util/virfile.c
index 23e334872f..ee434058c2 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -3037,26 +3037,6 @@ int virFileChownFiles(const char *name,
}
#endif /* WIN32 */
-/**
- * Creates the given directory with mode 0777 if it's not already existing.
- *
- * Returns 0 on success, or -1 if an error occurred (in which case, errno
- * is set appropriately).
- */
-int
-virFileMakePath(const char *path)
-{
- return g_mkdir_with_parents(path, 0777);
-}
-
-int
-virFileMakePathWithMode(const char *path,
- mode_t mode)
-{
- return g_mkdir_with_parents(path, mode);
-}
-
-
int
virFileMakeParentPath(const char *path)
{
diff --git a/src/util/virfile.h b/src/util/virfile.h
index 733d652ac9..bca0c32a04 100644
--- a/src/util/virfile.h
+++ b/src/util/virfile.h
@@ -277,9 +277,6 @@ int virDirRead(DIR *dirp, struct dirent **ent, const char *dirname)
void virDirClose(DIR *dirp);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(DIR, virDirClose);
-int virFileMakePath(const char *path) G_GNUC_WARN_UNUSED_RESULT;
-int virFileMakePathWithMode(const char *path,
- mode_t mode) G_GNUC_WARN_UNUSED_RESULT;
int virFileMakeParentPath(const char *path) G_GNUC_WARN_UNUSED_RESULT;
char *virFileBuildPath(const char *dir,
--
2.26.2