Skip to content

Commit

Permalink
Remove unneeded workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
netheril96 committed Mar 7, 2024
1 parent f8ac69a commit d5e4160
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sources/lite_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,7 @@ namespace lite_format

while (dir->next(&name, &st))
{
#ifdef WIN32
int rc = filler(buf, name.c_str(), read_dir_plus_ ? &st : nullptr, 0);
#else
// On Unix platforms, only st_ino and st_mode is used, therefore we are OK to send the
// stat here even if padding is enabled.
int rc = filler(buf, name.c_str(), &st, 0);
#endif
if (rc != 0)
{
return -std::abs(rc);
Expand Down

0 comments on commit d5e4160

Please sign in to comment.