Cleanup: remove unused function

This commit is contained in:
Campbell Barton
2024-06-04 10:49:10 +10:00
parent 21e988a51c
commit b0bfa56db9

View File

@@ -345,18 +345,6 @@ static bool gpencil_paintmode_toggle_poll(bContext *C)
return false;
}
static bool gpencil_paint_poll_view3d(bContext *C)
{
const Object *ob = CTX_data_active_object(C);
if (ob == nullptr || (ob->mode & OB_MODE_PAINT_GPENCIL_LEGACY) == 0) {
return false;
}
if (CTX_wm_region_view3d(C) == nullptr) {
return false;
}
return true;
}
static int gpencil_paintmode_toggle_exec(bContext *C, wmOperator *op)
{
const bool back = RNA_boolean_get(op->ptr, "back");