[Bf-blender-cvs] [c7954d5904c] master: Cleanup: Remove unused function

Sergey Sharybin noreply at git.blender.org
Fri Mar 18 10:34:23 CET 2022


Commit: c7954d5904c63c3d313d32a5efe6d1e09e4c4eda
Author: Sergey Sharybin
Date:   Fri Mar 18 10:34:06 2022 +0100
Branches: master
https://developer.blender.org/rBc7954d5904c63c3d313d32a5efe6d1e09e4c4eda

Cleanup: Remove unused function

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

M	source/blender/editors/include/ED_mask.h
M	source/blender/editors/mask/mask_draw.c

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

diff --git a/source/blender/editors/include/ED_mask.h b/source/blender/editors/include/ED_mask.h
index bc01f76f20d..7039d6d9fc7 100644
--- a/source/blender/editors/include/ED_mask.h
+++ b/source/blender/editors/include/ED_mask.h
@@ -63,7 +63,6 @@ bool ED_mask_selected_minmax(const struct bContext *C,
 
 /* mask_draw.c */
 
-void ED_mask_draw(const struct bContext *C, char draw_flag, char draw_type);
 /**
  * Sets up the opengl context.
  * width, height are to match the values from #ED_mask_get_size().
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index 8fe3b74f9c9..60232dee109 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -638,21 +638,6 @@ static void draw_mask_layers(const bContext *C,
   GPU_blend(GPU_BLEND_NONE);
 }
 
-void ED_mask_draw(const bContext *C, const char draw_flag, const char draw_type)
-{
-  ScrArea *area = CTX_wm_area(C);
-  Mask *mask = CTX_data_edit_mask(C);
-  int width, height;
-
-  if (!mask) {
-    return;
-  }
-
-  ED_mask_get_size(area, &width, &height);
-
-  draw_mask_layers(C, mask, draw_flag, draw_type, width, height);
-}
-
 static float *mask_rasterize(Mask *mask, const int width, const int height)
 {
   MaskRasterHandle *handle;



More information about the Bf-blender-cvs mailing list