From ef15a480ed92d1177682eaa7f6698d4391ef21c0 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Wed, 21 Feb 2024 16:18:01 +0100 Subject: [PATCH] Remove FileInfo.timeCreated As it is not available on all platforms, we can't really rely on it for code, and it is indeed not used anywhere. --- source/dub/internal/vibecompat/core/file.d | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/dub/internal/vibecompat/core/file.d b/source/dub/internal/vibecompat/core/file.d index 98fd1ce97..75a94cf04 100644 --- a/source/dub/internal/vibecompat/core/file.d +++ b/source/dub/internal/vibecompat/core/file.d @@ -293,9 +293,6 @@ struct FileInfo { /// Time of the last modification SysTime timeModified; - /// Time of creation (not available on all operating systems/file systems) - SysTime timeCreated; - /// True if this is a symlink to an actual file bool isSymlink; @@ -332,8 +329,6 @@ private FileInfo makeFileInfo(DirEntry ent) ret.isDirectory = ent.isDir; ret.size = ent.size; ret.timeModified = ent.timeLastModified; - version(Windows) ret.timeCreated = ent.timeCreated; - else ret.timeCreated = ent.timeLastModified; } catch (Exception e) { logDiagnostic("Failed to get extended file information for %s: %s", ret.name, e.msg); }