[Bf-blender-cvs] [b497eae] master: Screen: remove redundant NULL check in ED_area_prevspace

Campbell Barton noreply at git.blender.org
Mon Feb 23 11:28:30 CET 2015


Commit: b497eae0a85ce61bf43ea50c9f5d35345c1dd700
Author: Campbell Barton
Date:   Mon Feb 23 21:06:55 2015 +1100
Branches: master
https://developer.blender.org/rBb497eae0a85ce61bf43ea50c9f5d35345c1dd700

Screen: remove redundant NULL check in ED_area_prevspace

===================================================================

M	source/blender/editors/screen/area.c

===================================================================

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index c0878fe..c423d81 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1631,7 +1631,7 @@ void ED_area_newspace(bContext *C, ScrArea *sa, int type)
 
 void ED_area_prevspace(bContext *C, ScrArea *sa)
 {
-	SpaceLink *sl = (sa) ? sa->spacedata.first : CTX_wm_space_data(C);
+	SpaceLink *sl = sa->spacedata.first;
 
 	if (sl && sl->next) {
 		/* workaround for case of double prevspace, render window




More information about the Bf-blender-cvs mailing list