forked from bartvdbraak/blender
code cleanup: remove unused member of direntry struct, also add include for building on osx.
This commit is contained in:
parent
384948908a
commit
fcc807f294
@ -42,7 +42,6 @@ typedef unsigned int mode_t;
|
|||||||
struct ImBuf;
|
struct ImBuf;
|
||||||
|
|
||||||
struct direntry {
|
struct direntry {
|
||||||
char *string;
|
|
||||||
mode_t type;
|
mode_t type;
|
||||||
char *relname;
|
char *relname;
|
||||||
char *path;
|
char *path;
|
||||||
|
@ -434,9 +434,6 @@ static void bli_adddirstrings(struct BuildDirCtx *dir_ctx)
|
|||||||
BLI_snprintf(buf, sizeof(buf), "%s %s %s %7s %s %s %10s %s",
|
BLI_snprintf(buf, sizeof(buf), "%s %s %s %7s %s %s %10s %s",
|
||||||
file->mode1, file->mode2, file->mode3, file->owner,
|
file->mode1, file->mode2, file->mode3, file->owner,
|
||||||
file->date, file->time, size, file->relname);
|
file->date, file->time, size, file->relname);
|
||||||
|
|
||||||
file->string = BLI_strdup(buf);
|
|
||||||
/* FIXME: not actually used anywhere, why bother to set it up? */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -480,8 +477,6 @@ void BLI_free_filelist(struct direntry *filelist, unsigned int nrentries)
|
|||||||
MEM_freeN(entry->relname);
|
MEM_freeN(entry->relname);
|
||||||
if (entry->path)
|
if (entry->path)
|
||||||
MEM_freeN(entry->path);
|
MEM_freeN(entry->path);
|
||||||
if (entry->string)
|
|
||||||
MEM_freeN(entry->string);
|
|
||||||
/* entry->poin assumed not to point to anything needing freeing here */
|
/* entry->poin assumed not to point to anything needing freeing here */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "BLO_sys_types.h"
|
#include "BLO_sys_types.h"
|
||||||
#include "BKE_global.h"
|
#include "BKE_global.h"
|
||||||
|
|
||||||
|
#include "BLI_utildefines.h"
|
||||||
#include "BLI_dynstr.h"
|
#include "BLI_dynstr.h"
|
||||||
#include "BLI_path_util.h"
|
#include "BLI_path_util.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user