From b3c02cfcfdd987ee0822cd1181dd02246d138ecd Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Thu, 11 May 2023 11:27:38 -0300 Subject: [PATCH] Cleanup: remove unused snap_3d functions --- .../gizmo_library/gizmo_types/snap3d_gizmo.c | 18 ------------------ .../blender/editors/include/ED_gizmo_library.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c index 2e1a8337a65..e1c201329d3 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c @@ -56,24 +56,6 @@ void ED_gizmotypes_snap_3d_flag_set(struct wmGizmo *gz, int flag) snap_state->flag |= flag; } -void ED_gizmotypes_snap_3d_flag_clear(struct wmGizmo *gz, int flag) -{ - V3DSnapCursorState *snap_state = ((SnapGizmo3D *)gz)->snap_state; - snap_state->flag &= ~flag; -} - -bool ED_gizmotypes_snap_3d_flag_test(struct wmGizmo *gz, int flag) -{ - V3DSnapCursorState *snap_state = ((SnapGizmo3D *)gz)->snap_state; - return (snap_state->flag & flag) != 0; -} - -bool ED_gizmotypes_snap_3d_invert_snap_get(struct wmGizmo *UNUSED(gz)) -{ - V3DSnapCursorData *snap_data = ED_view3d_cursor_snap_data_get(); - return snap_data->is_snap_invert; -} - bool ED_gizmotypes_snap_3d_is_enabled(const wmGizmo *UNUSED(gz)) { V3DSnapCursorData *snap_data = ED_view3d_cursor_snap_data_get(); diff --git a/source/blender/editors/include/ED_gizmo_library.h b/source/blender/editors/include/ED_gizmo_library.h index 2826aa9a313..39533251827 100644 --- a/source/blender/editors/include/ED_gizmo_library.h +++ b/source/blender/editors/include/ED_gizmo_library.h @@ -248,10 +248,7 @@ struct SnapObjectContext *ED_gizmotypes_snap_3d_context_ensure(struct Scene *sce struct wmGizmo *gz); void ED_gizmotypes_snap_3d_flag_set(struct wmGizmo *gz, int flag); -void ED_gizmotypes_snap_3d_flag_clear(struct wmGizmo *gz, int flag); -bool ED_gizmotypes_snap_3d_flag_test(struct wmGizmo *gz, int flag); -bool ED_gizmotypes_snap_3d_invert_snap_get(struct wmGizmo *gz); bool ED_gizmotypes_snap_3d_is_enabled(const struct wmGizmo *gz); void ED_gizmotypes_snap_3d_data_get(const struct bContext *C,