Commit: a5b9b6e2ce93c69e7b6e480cc525ab982fc4f889
Author: Mateusz Grzeliński
Date: Fri Aug 14 09:40:55 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBa5b9b6e2ce93c69e7b6e480cc525ab982fc4f889
Cleanup: else after return
===================================================================
M source/blender/editors/space_info/info_clog.c
M source/blender/editors/space_info/info_report.c
===================================================================
diff --git a/source/blender/editors/space_info/info_clog.c
b/source/blender/editors/space_info/info_clog.c
index 6c684f0ea53..5467441e172 100644
--- a/source/blender/editors/space_info/info_clog.c
+++ b/source/blender/editors/space_info/info_clog.c
@@ -220,13 +220,11 @@ static int select_clog_pick_exec(bContext *C, wmOperator
*op)
info_area_tag_redraw(C);
return OPERATOR_FINISHED;
}
- else {
- log_records_select_all(records, sinfo, SEL_DESELECT);
- record->flag |= CLG_SELECT;
- sinfo->active_index = clog_index;
- info_area_tag_redraw(C);
- return OPERATOR_FINISHED;
- }
+ log_records_select_all(records, sinfo, SEL_DESELECT);
+ record->flag |= CLG_SELECT;
+ sinfo->active_index = clog_index;
+ info_area_tag_redraw(C);
+ return OPERATOR_FINISHED;
}
if (extend && (record->flag & CLG_SELECT) && clog_index ==
sinfo->active_index) {
diff --git a/source/blender/editors/space_info/info_report.c
b/source/blender/editors/space_info/info_report.c
index 8415e83240f..6583370818a 100644
--- a/source/blender/editors/space_info/info_report.c
+++ b/source/blender/editors/space_info/info_report.c
@@ -232,13 +232,11 @@ static int select_report_pick_exec(bContext *C,
wmOperator *op)
info_area_tag_redraw(C);
return OPERATOR_FINISHED;
}
- else {
- reports_select_all(reports, sinfo, SEL_DESELECT);
- report->flag |= RPT_SELECT;
- sinfo->active_index = report_index;
- info_area_tag_redraw(C);
- return OPERATOR_FINISHED;
- }
+ reports_select_all(reports, sinfo, SEL_DESELECT);
+ report->flag |= RPT_SELECT;
+ sinfo->active_index = report_index;
+ info_area_tag_redraw(C);
+ return OPERATOR_FINISHED;
}
if (extend && (report->flag & RPT_SELECT) && report_index ==
sinfo->active_index) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs