[Bf-blender-cvs] [b606d020974] soc-2020-info-editor: Cleanup: remove unused argument

Mateusz Grzeliński noreply at git.blender.org
Fri Jul 24 12:00:00 CEST 2020


Commit: b606d020974f31f640af28d36a31def7f0561593
Author: Mateusz Grzeliński
Date:   Fri Jul 24 11:59:54 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBb606d020974f31f640af28d36a31def7f0561593

Cleanup: remove unused argument

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

M	source/blender/editors/space_console/console_draw.c
M	source/blender/editors/space_info/info_draw.c
M	source/blender/editors/space_info/textview.c
M	source/blender/editors/space_info/textview.h

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

diff --git a/source/blender/editors/space_console/console_draw.c b/source/blender/editors/space_console/console_draw.c
index 6631a5d6a8c..3dbe245d333 100644
--- a/source/blender/editors/space_console/console_draw.c
+++ b/source/blender/editors/space_console/console_draw.c
@@ -122,7 +122,7 @@ static void console_textview_end(TextViewContext *tvc)
 }
 
 /** one step for console is printing one "chunk" at a time. Chunk is line with the same type */
-static int console_textview_step(TextViewContext *tvc, ListBase *text_lines)
+static int console_textview_step(TextViewContext *tvc)
 {
   const ConsoleLine *cl_current = tvc->iter;
   const ConsoleLine *cl_iter = tvc->iter;
diff --git a/source/blender/editors/space_info/info_draw.c b/source/blender/editors/space_info/info_draw.c
index 23621020408..63b36895dca 100644
--- a/source/blender/editors/space_info/info_draw.c
+++ b/source/blender/editors/space_info/info_draw.c
@@ -193,7 +193,7 @@ static void report_textview_end(TextViewContext *UNUSED(tvc))
   /* pass */
 }
 
-static int report_textview_step(TextViewContext *tvc, ListBase *UNUSED(text_lines))
+static int report_textview_step(TextViewContext *tvc)
 {
   /* simple case, but no newline support */
   const Report *report = tvc->iter;
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index 8e3ae34b593..2ce5aae582f 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -485,7 +485,7 @@ int textview_draw(TextViewContext *tvc,
       iter_index++;
 
       textview_clear_text_lines(&text_lines);
-    } while (tvc->step(tvc, &text_lines));
+    } while (tvc->step(tvc));
   }
 
   tvc->end(tvc);
diff --git a/source/blender/editors/space_info/textview.h b/source/blender/editors/space_info/textview.h
index 192c04bba4b..40d58ee4e18 100644
--- a/source/blender/editors/space_info/textview.h
+++ b/source/blender/editors/space_info/textview.h
@@ -53,7 +53,7 @@ typedef struct TextViewContext {
   const void *arg2;
 
   /* iterator */
-  int (*step)(struct TextViewContext *tvcl, struct ListBase *text_line);
+  int (*step)(struct TextViewContext *tvcl);
 
   void (*lines_get)(struct TextViewContext *tvc, struct ListBase *text_lines);
   enum eTextViewContext_LineFlag (*line_draw_data)(struct TextViewContext *tvc,



More information about the Bf-blender-cvs mailing list