[Bf-blender-cvs] [0ee16f198d5] soc-2020-info-editor: Cleanup: remove unused function

Mateusz Grzeliński noreply at git.blender.org
Fri Aug 14 15:38:55 CEST 2020


Commit: 0ee16f198d569d08f9f858670b18f411801e0f13
Author: Mateusz Grzeliński
Date:   Fri Aug 14 09:18:26 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB0ee16f198d569d08f9f858670b18f411801e0f13

Cleanup: remove unused function

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

M	source/blender/blenkernel/BKE_report.h
M	source/blender/blenkernel/intern/report.c

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

diff --git a/source/blender/blenkernel/BKE_report.h b/source/blender/blenkernel/BKE_report.h
index 16ca9e49c1f..f31f7e800db 100644
--- a/source/blender/blenkernel/BKE_report.h
+++ b/source/blender/blenkernel/BKE_report.h
@@ -39,7 +39,6 @@ extern "C" {
 
 void BKE_reports_init(ReportList *reports, int flag);
 void BKE_reports_clear(ReportList *reports);
-ReportList *BKE_reports_duplicate(ReportList *reports);
 
 void BKE_report_format(ReportList *reports, ReportType type, int flags, const char *message);
 void BKE_report(ReportList *reports, ReportType type, const char *message);
diff --git a/source/blender/blenkernel/intern/report.c b/source/blender/blenkernel/intern/report.c
index 2b90b22ac6b..e7acbc9cf29 100644
--- a/source/blender/blenkernel/intern/report.c
+++ b/source/blender/blenkernel/intern/report.c
@@ -129,27 +129,6 @@ void BKE_reports_clear(ReportList *reports)
   BLI_listbase_clear(&reports->list);
 }
 
-/** deep copy of reports */
-ReportList *BKE_reports_duplicate(ReportList *reports)
-{
-  Report *report = reports->list.first, *report_next, *report_dup;
-  ReportList *reports_new = MEM_dupallocN(reports);
-  BLI_listbase_clear(&reports_new->list);
-
-  while (report) {
-    report_next = report->next;
-    report_dup = MEM_dupallocN(report);
-    report_dup->message = MEM_dupallocN(report->message);
-    BLI_addtail(&reports_new->list, report_dup);
-    report = report_next;
-  }
-
-  // TODO (grzelins) learn how to duplicate timer
-  // reports_new->reporttimer
-
-  return reports_new;
-}
-
 void BKE_report_format(ReportList *reports, ReportType type, int flags, const char *_message)
 {
   const char *message = TIP_(_message);



More information about the Bf-blender-cvs mailing list