Commit: 05edcf632950a81adb4a165340e01c5c92f1c578
Author: Campbell Barton
Date:   Sat Aug 17 00:53:18 2019 +1000
Branches: master
https://developer.blender.org/rB05edcf632950a81adb4a165340e01c5c92f1c578

Cleanup: unused args/vars

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

M       source/blender/blenloader/intern/versioning_280.c
M       source/blender/editors/screen/screen_ops.c

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

diff --git a/source/blender/blenloader/intern/versioning_280.c 
b/source/blender/blenloader/intern/versioning_280.c
index a80fa9f8f3d..078fbb2c5f6 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -825,7 +825,7 @@ static void 
do_versions_material_convert_legacy_blend_mode(bNodeTree *ntree, cha
   }
 }
 
-void do_versions_after_linking_280(Main *bmain, ReportList *reports)
+void do_versions_after_linking_280(Main *bmain, ReportList *UNUSED(reports))
 {
   bool use_collection_compat_28 = true;
 
diff --git a/source/blender/editors/screen/screen_ops.c 
b/source/blender/editors/screen/screen_ops.c
index 272c5623dc6..42f502f6511 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -4780,17 +4780,12 @@ static void SCREEN_OT_drivers_editor_show(struct 
wmOperatorType *ot)
 
 static int info_log_show_invoke(bContext *C, wmOperator *op, const wmEvent 
*event)
 {
-  PointerRNA ptr = {{NULL}};
-  PropertyRNA *prop = NULL;
-
   int sizex = 900 * UI_DPI_FAC;
   int sizey = 580 * UI_DPI_FAC;
   int shift_y = 480;
 
   /* changes context! */
-  if (WM_window_open_temp(C, event->x, event->y+shift_y, sizex, sizey, 
WM_WINDOW_INFO) != NULL) {
-    ScrArea *area = CTX_wm_area(C);
-    ARegion *region = BKE_area_find_region_type(area, RGN_TYPE_HEADER);
+  if (WM_window_open_temp(C, event->x, event->y + shift_y, sizex, sizey, 
WM_WINDOW_INFO) != NULL) {
     return OPERATOR_FINISHED;
   }
   else {

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

Reply via email to