]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: remove unused VIR_DIR_CLOSE() macro
authorLaine Stump <laine@redhat.com>
Mon, 26 Oct 2020 02:43:20 +0000 (22:43 -0400)
committerLaine Stump <laine@redhat.com>
Tue, 3 Nov 2020 03:01:36 +0000 (22:01 -0500)
Since every single use of DIR* was converted to use g_autoptr, this
function is not currently needed. Even if someone comes up with a
usage for a non-g_autoptr DIR* in the future, they can just use
virDirClose(), since there is no longer a semantic difference between
the two (VIR_DIR_CLOSE() previously had an extra & on the pointer so
that it could be transparently passed as a DIR** to virDirClose(), but
that was removed several commits back.)

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/util/virfile.h

index 6973fbd54ad85d7ccccc93846fe595ece94ccb05..ba31a78e58cf17c43391122336cdec0bfe4416e1 100644 (file)
@@ -272,7 +272,6 @@ int virDirRead(DIR *dirp, struct dirent **ent, const char *dirname)
 void virDirClose(DIR *dirp)
     ATTRIBUTE_NONNULL(1);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(DIR, virDirClose);
-#define VIR_DIR_CLOSE(dir)  virDirClose(dir)
 
 int virFileMakePath(const char *path) G_GNUC_WARN_UNUSED_RESULT;
 int virFileMakePathWithMode(const char *path,