diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index fabb69b8eff..c1c31f6795d 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -101,7 +101,6 @@ #include "GHOST_Path-api.h" #include "UI_interface.h" -#include "UI_interface_icons.h" #include "UI_view2d.h" #include "GPU_draw.h" @@ -895,24 +894,6 @@ bool write_crash_blend(void) } } -static void UNUSED_FUNCTION(wm_ensure_previews)(bContext *C, Main *mainvar) -{ - ListBase *lb[] = {&mainvar->mat, &mainvar->tex, &mainvar->image, &mainvar->world, &mainvar->lamp, NULL}; - ID *id; - int i; - - for (i = 0; lb[i]; i++) { - for (id = lb[i]->first; id; id = id->next) { - /* Only preview non-library datablocks, lib ones do not pertain to this .blend file! - * Same goes for ID with no user. */ - if (!id->lib && (id->us != 0)) { - UI_id_icon_render(C, id, false, false); - UI_id_icon_render(C, id, true, false); - } - } - } -} - /** * \see #wm_homefile_write_exec wraps #BLO_write_file in a similar way. */ |