Cleanup: Remove unused function

This commit is contained in:
Sergey Sharybin 2022-03-18 10:34:06 +01:00
parent 578c2f117a
commit c7954d5904
2 changed files with 0 additions and 16 deletions

View File

@ -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().

View File

@ -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;