From 2837a7e198a15381ec00e190c1c7c9a628d3412b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 5 Nov 2017 23:34:40 +1100 Subject: Cleanup: remove paranoid NULL check --- source/blender/blenkernel/intern/library.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/blender/blenkernel/intern/library.c') diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index d8617ef44e4..6bf2b10b3ee 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -1782,10 +1782,6 @@ bool new_id(ListBase *lb, ID *id, const char *tname) if (ID_IS_LINKED_DATABLOCK(id)) return false; - /* if no libdata given, look up based on ID */ - if (lb == NULL) - lb = which_libbase(G.main, GS(id->name)); - /* if no name given, use name of current ID * else make a copy (tname args can be const) */ if (tname == NULL) @@ -2329,7 +2325,6 @@ void BLI_libblock_ensure_unique_name(Main *bmain, const char *name) ListBase *lb; ID *idtest; - lb = which_libbase(bmain, GS(name)); if (lb == NULL) return; -- cgit v1.2.3