Cleanup: Undefined function declarations
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 5 Jul 2018 14:55:25 +0000 (16:55 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 5 Jul 2018 14:56:47 +0000 (16:56 +0200)
source/blender/editors/include/ED_screen.h
source/blender/editors/physics/particle_edit.c
source/blender/editors/sculpt_paint/sculpt.c

index 2b0729a8e13905488f1a06d5be13199547497783..914641c1add0caedde7f2c24b37fdd558cce0485 100644 (file)
@@ -234,11 +234,6 @@ bool ED_workspace_layout_cycle(
         struct WorkSpace *workspace, const short direction,
         struct bContext *C) ATTR_NONNULL();
 
-void ED_workspace_object_mode_sync_from_object(
-        struct wmWindowManager *wm, WorkSpace *workspace, struct Object *obact);
-void ED_workspace_object_mode_sync_from_scene(
-        struct wmWindowManager *wm, WorkSpace *workspace, struct Scene *scene);
-
 void    ED_workspace_status_text(struct bContext *C, const char *str);
 
 /* anim */
index e637a58e8c6462aa8d09e599eefa653342b4d5d1..a08e35d08a7b5286476234b7c5c52c034dc27433 100644 (file)
@@ -4809,8 +4809,6 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op)
                WM_event_add_notifier(C, NC_SCENE|ND_MODE|NS_MODE_OBJECT, NULL);
        }
 
-       // ED_workspace_object_mode_sync_from_object(wm, workspace, ob);
-
        DEG_id_tag_update(&ob->id, OB_RECALC_DATA | DEG_TAG_COPY_ON_WRITE);
 
        WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode);
index 946757d5d205bc90ad991f68f16b418d6b88b031..baaa2d638a3c155e47e7b711b43af23d7703ff3c 100644 (file)
@@ -5738,8 +5738,6 @@ void ED_object_sculptmode_enter_ex(
                }
        }
 
-       // ED_workspace_object_mode_sync_from_object(bmain->wm.first, workspace, ob);
-
        /* Flush object mode. */
        DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
 }
@@ -5790,8 +5788,6 @@ void ED_object_sculptmode_exit_ex(
        /* Leave sculptmode */
        ob->mode &= ~mode_flag;
 
-       // ED_workspace_object_mode_sync_from_object(G_MAIN->wm.first, workspace, ob);
-
        BKE_sculptsession_free(ob);
 
        paint_cursor_delete_textures();