Commit: 50b435cbaaa0fb44ddd7f2d9abd9e28ff07c86fe
Author: Hans Goudey
Date:   Wed Aug 19 18:05:03 2020 -0400
Branches: master
https://developer.blender.org/rB50b435cbaaa0fb44ddd7f2d9abd9e28ff07c86fe

Cleanup: Remove unused variable

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

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

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

diff --git a/source/blender/editors/screen/area.c 
b/source/blender/editors/screen/area.c
index 425fe3fa40e..eed4370ee37 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -2569,7 +2569,6 @@ BLI_INLINE bool streq_array_any(const char *s, const char 
*arr[])
  * correct old \a uiBlock, and NULL otherwise.
  */
 static void ed_panel_draw(const bContext *C,
-                          ScrArea *area,
                           ARegion *region,
                           ListBase *lb,
                           PanelType *pt,
@@ -2694,16 +2693,8 @@ static void ed_panel_draw(const bContext *C,
       Panel *child_panel = UI_panel_find_by_type(&panel->children, child_pt);
 
       if (child_pt->draw && (!child_pt->poll || child_pt->poll(C, child_pt))) {
-        ed_panel_draw(C,
-                      area,
-                      region,
-                      &panel->children,
-                      child_pt,
-                      child_panel,
-                      w,
-                      em,
-                      vertical,
-                      unique_panel_str);
+        ed_panel_draw(
+            C, region, &panel->children, child_pt, child_panel, w, em, 
vertical, unique_panel_str);
       }
     }
   }
@@ -2855,7 +2846,6 @@ void ED_region_panels_layout_ex(const bContext *C,
     }
 
     ed_panel_draw(C,
-                  area,
                   region,
                   &region->panels,
                   pt,
@@ -2890,7 +2880,6 @@ void ED_region_panels_layout_ex(const bContext *C,
       char unique_panel_str[8];
       UI_list_panel_unique_str(panel, unique_panel_str);
       ed_panel_draw(C,
-                    area,
                     region,
                     &region->panels,
                     panel->type,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to