From bcf0c7143371deba9050eedd0f3474ae4fd91cc9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 31 Dec 2018 00:57:47 +1100 Subject: Cleanup: remove non-existing function declarations --- source/blender/blenkernel/BKE_DerivedMesh.h | 6 ------ source/blender/blenkernel/BKE_blender.h | 2 -- source/blender/blenkernel/BKE_collection.h | 3 --- source/blender/blenkernel/BKE_material.h | 1 - source/blender/blenkernel/BKE_object.h | 3 --- source/blender/blenkernel/BKE_object_deform.h | 7 ------- source/blender/blenkernel/BKE_scene.h | 1 - source/blender/blenkernel/BKE_texture.h | 1 - source/blender/blenkernel/BKE_writeavi.h | 1 - source/blender/blenloader/BLO_readfile.h | 2 -- source/blender/bmesh/intern/bmesh_mesh_conv.h | 2 -- source/blender/collada/collada_utils.h | 2 ++ source/blender/draw/engines/eevee/eevee_private.h | 1 - source/blender/draw/engines/workbench/workbench_private.h | 8 -------- source/blender/draw/intern/DRW_render.h | 6 ------ source/blender/draw/intern/draw_cache.h | 5 ----- source/blender/draw/intern/draw_common.h | 1 - source/blender/draw/intern/draw_manager.h | 3 --- source/blender/editors/curve/curve_intern.h | 1 - source/blender/editors/gpencil/gpencil_intern.h | 1 - source/blender/editors/include/ED_keyframes_draw.h | 2 -- source/blender/editors/include/ED_view3d.h | 2 -- source/blender/editors/interface/interface_intern.h | 8 -------- source/blender/editors/mesh/mesh_intern.h | 1 - source/blender/editors/object/object_intern.h | 1 - source/blender/editors/screen/screen_intern.h | 1 - source/blender/editors/sculpt_paint/paint_intern.h | 3 --- source/blender/editors/sculpt_paint/sculpt_intern.h | 1 - source/blender/editors/space_clip/clip_intern.h | 3 --- source/blender/editors/space_image/image_intern.h | 1 - source/blender/editors/space_outliner/outliner_intern.h | 12 ------------ source/blender/editors/space_view3d/view3d_intern.h | 13 ------------- source/blender/freestyle/FRS_freestyle.h | 1 - source/blender/gpu/GPU_batch_presets.h | 1 - source/blender/gpu/GPU_material.h | 1 - source/blender/gpu/GPU_shader.h | 1 - source/blender/imbuf/IMB_imbuf.h | 6 ------ source/blender/makesrna/RNA_enum_types.h | 2 -- source/blender/makesrna/intern/rna_internal.h | 8 -------- source/blender/python/mathutils/mathutils_noise.h | 2 -- source/blender/render/extern/include/RE_pipeline.h | 5 ----- source/blender/windowmanager/gizmo/WM_gizmo_api.h | 2 -- 42 files changed, 2 insertions(+), 132 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/BKE_DerivedMesh.h b/source/blender/blenkernel/BKE_DerivedMesh.h index c9ea8b3174c..8c1dc77964a 100644 --- a/source/blender/blenkernel/BKE_DerivedMesh.h +++ b/source/blender/blenkernel/BKE_DerivedMesh.h @@ -494,10 +494,6 @@ void DM_interp_poly_data( void mesh_get_mapped_verts_coords(struct Mesh *me_eval, float (*r_cos)[3], const int totcos); -DerivedMesh *mesh_create_derived_for_modifier( - struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, - struct ModifierData *md, int build_shapekey_layers); - DerivedMesh *mesh_create_derived_render( struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, CustomDataMask dataMask); @@ -530,8 +526,6 @@ void DM_calc_loop_tangents( DerivedMesh *dm, bool calc_active_tangent, const char (*tangent_names)[MAX_NAME], int tangent_names_count); -void DM_calc_auto_bump_scale(DerivedMesh *dm); - void DM_init_origspace(DerivedMesh *dm); /* debug only */ diff --git a/source/blender/blenkernel/BKE_blender.h b/source/blender/blenkernel/BKE_blender.h index 647291382ef..98cf00ef220 100644 --- a/source/blender/blenkernel/BKE_blender.h +++ b/source/blender/blenkernel/BKE_blender.h @@ -56,8 +56,6 @@ void BKE_blender_userdef_app_template_data_swap(struct UserDef *userdef_dst, str void BKE_blender_userdef_app_template_data_set(struct UserDef *userdef); void BKE_blender_userdef_app_template_data_set_and_free(struct UserDef *userdef); -void BKE_blender_userdef_data_duplicate(struct UserDef *userdef_dst, struct UserDef *userdef_src); - void BKE_blender_userdef_data_free(struct UserDef *userdef, bool clear_fonts); /* set this callback when a UI is running */ diff --git a/source/blender/blenkernel/BKE_collection.h b/source/blender/blenkernel/BKE_collection.h index d78133499ce..ea824c63c40 100644 --- a/source/blender/blenkernel/BKE_collection.h +++ b/source/blender/blenkernel/BKE_collection.h @@ -132,9 +132,6 @@ bool BKE_collection_find_cycle(struct Collection *new_ancestor, typedef void (*BKE_scene_objects_Cb)(struct Object *ob, void *data); typedef void (*BKE_scene_collections_Cb)(struct Collection *ob, void *data); -void BKE_scene_collections_callback(struct Scene *scene, BKE_scene_collections_Cb callback, void *data); -void BKE_scene_objects_callback(struct Scene *scene, BKE_scene_objects_Cb callback, void *data); - /* Iteratorion over objects in collection. */ #define FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_BEGIN(_collection, _object, _mode) \ diff --git a/source/blender/blenkernel/BKE_material.h b/source/blender/blenkernel/BKE_material.h index 1ca8928c61d..062658139af 100644 --- a/source/blender/blenkernel/BKE_material.h +++ b/source/blender/blenkernel/BKE_material.h @@ -46,7 +46,6 @@ struct Scene; void init_def_material(void); void BKE_material_free(struct Material *ma); -void BKE_material_free_ex(struct Material *ma, bool do_id_user); void test_object_materials(struct Main *bmain, struct Object *ob, struct ID *id); void test_all_objects_materials(struct Main *bmain, struct ID *id); void BKE_material_resize_object(struct Main *bmain, struct Object *ob, const short totcol, bool do_id_user); diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h index 50e095720e0..8a3bf81911d 100644 --- a/source/blender/blenkernel/BKE_object.h +++ b/source/blender/blenkernel/BKE_object.h @@ -315,9 +315,6 @@ bool BKE_object_is_animated(struct Scene *scene, struct Object *ob); int BKE_object_is_modified(struct Scene *scene, struct Object *ob); int BKE_object_is_deform_modified(struct Scene *scene, struct Object *ob); -void BKE_object_relink(struct Object *ob); -void BKE_object_data_relink(struct Object *ob); - struct MovieClip *BKE_object_movieclip_get(struct Scene *scene, struct Object *ob, bool use_default); void BKE_object_runtime_reset(struct Object *object); diff --git a/source/blender/blenkernel/BKE_object_deform.h b/source/blender/blenkernel/BKE_object_deform.h index ab54330cf53..c94b142af9f 100644 --- a/source/blender/blenkernel/BKE_object_deform.h +++ b/source/blender/blenkernel/BKE_object_deform.h @@ -79,11 +79,4 @@ void BKE_object_defgroup_mirror_selection( } #endif -/* Select helpers */ -bool *BKE_objdef_vgroup_subset_from_select_type( - struct Object *ob, enum eVGroupSelect subset_type, int *r_vgroup_tot, int *r_subset_count); -void BKE_objdef_vgroup_subset_to_index_array( - const bool *vgroup_validmap, const int vgroup_tot, int *r_vgroup_subset_map); - - #endif /* __BKE_OBJECT_DEFORM_H__ */ diff --git a/source/blender/blenkernel/BKE_scene.h b/source/blender/blenkernel/BKE_scene.h index fd1ba56fd8b..208afa4b67a 100644 --- a/source/blender/blenkernel/BKE_scene.h +++ b/source/blender/blenkernel/BKE_scene.h @@ -104,7 +104,6 @@ int BKE_scene_base_iter_next( struct Scene **scene, int val, struct Base **base, struct Object **ob); void BKE_scene_base_flag_to_objects(struct ViewLayer *view_layer); -void BKE_scene_base_flag_from_objects(struct Scene *scene); void BKE_scene_object_base_flag_sync_from_base(struct Base *base); void BKE_scene_object_base_flag_sync_from_object(struct Base *base); diff --git a/source/blender/blenkernel/BKE_texture.h b/source/blender/blenkernel/BKE_texture.h index 228e17cd2ef..2f0d62b4b42 100644 --- a/source/blender/blenkernel/BKE_texture.h +++ b/source/blender/blenkernel/BKE_texture.h @@ -73,7 +73,6 @@ struct MTex *BKE_texture_mtex_add_id(struct ID *id, int slot); /* UNUSED */ // void autotexname(struct Tex *tex); -struct Tex *give_current_object_texture(struct Object *ob); struct Tex *give_current_linestyle_texture(struct FreestyleLineStyle *linestyle); struct Tex *give_current_brush_texture(struct Brush *br); struct Tex *give_current_particle_texture(struct ParticleSettings *part); diff --git a/source/blender/blenkernel/BKE_writeavi.h b/source/blender/blenkernel/BKE_writeavi.h index 31235047cbd..05a6986528e 100644 --- a/source/blender/blenkernel/BKE_writeavi.h +++ b/source/blender/blenkernel/BKE_writeavi.h @@ -56,7 +56,6 @@ typedef struct bMovieHandle { bMovieHandle *BKE_movie_handle_get(const char imtype); void BKE_movie_filepath_get(char *string, struct RenderData *rd, bool preview, const char *suffix); -void BKE_context_create(bMovieHandle *mh); #ifdef __cplusplus } diff --git a/source/blender/blenloader/BLO_readfile.h b/source/blender/blenloader/BLO_readfile.h index a3714e6ac8d..99226b57fe2 100644 --- a/source/blender/blenloader/BLO_readfile.h +++ b/source/blender/blenloader/BLO_readfile.h @@ -170,8 +170,6 @@ void BLO_version_defaults_userpref_blend(struct Main *mainvar, struct UserDef *u struct BlendThumbnail *BLO_thumbnail_from_file(const char *filepath); -struct Main *BLO_main_from_memfile(struct MemFile *memfile, struct Main *bmain, struct Scene **r_scene); - /* datafiles (generated theme) */ extern const struct bTheme U_theme_default; diff --git a/source/blender/bmesh/intern/bmesh_mesh_conv.h b/source/blender/bmesh/intern/bmesh_mesh_conv.h index 8f389a8cf05..6b1cbe0950e 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_conv.h +++ b/source/blender/bmesh/intern/bmesh_mesh_conv.h @@ -35,12 +35,10 @@ struct Main; struct Mesh; -void BM_mesh_cd_validate(BMesh *bm); void BM_mesh_cd_flag_ensure(BMesh *bm, struct Mesh *mesh, const char cd_flag); void BM_mesh_cd_flag_apply(BMesh *bm, const char cd_flag); char BM_mesh_cd_flag_from_bmesh(BMesh *bm); - struct BMeshFromMeshParams { uint calc_face_normal : 1; /* add a vertex CD_SHAPE_KEYINDEX layer */ diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h index a79085f0282..91325ec5fd2 100644 --- a/source/blender/collada/collada_utils.h +++ b/source/blender/collada/collada_utils.h @@ -180,11 +180,13 @@ inline bool bc_startswith(std::string const & value, std::string const & startin return (value.substr(0, starting.size()) == starting); } +#if 0 /* UNUSED */ inline bool bc_endswith(std::string const & value, std::string const & ending) { if (ending.size() > value.size()) return false; return std::equal(ending.rbegin(), ending.rend(), value.rbegin()); } +#endif extern std::string bc_replace_string(std::string data, const std::string& pattern, const std::string& replacement); extern std::string bc_url_encode(std::string data); diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h index a321e68b815..9fc0a304c0b 100644 --- a/source/blender/draw/engines/eevee/eevee_private.h +++ b/source/blender/draw/engines/eevee/eevee_private.h @@ -992,7 +992,6 @@ void EEVEE_effects_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, struct GPUTexture *depth_src, int layer); void EEVEE_downsample_buffer(EEVEE_Data *vedata, struct GPUTexture *texture_src, int level); void EEVEE_downsample_cube_buffer(EEVEE_Data *vedata, struct GPUTexture *texture_src, int level); -void EEVEE_effects_do_gtao(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_draw_effects(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata); void EEVEE_effects_free(void); diff --git a/source/blender/draw/engines/workbench/workbench_private.h b/source/blender/draw/engines/workbench/workbench_private.h index c4b73fa43ff..a4dbd9a931e 100644 --- a/source/blender/draw/engines/workbench/workbench_private.h +++ b/source/blender/draw/engines/workbench/workbench_private.h @@ -250,14 +250,6 @@ typedef struct WORKBENCH_ObjectData { int object_id; } WORKBENCH_ObjectData; -/* workbench_engine.c */ -void workbench_solid_materials_init(WORKBENCH_Data *vedata); -void workbench_solid_materials_cache_init(WORKBENCH_Data *vedata); -void workbench_solid_materials_cache_populate(WORKBENCH_Data *vedata, Object *ob); -void workbench_solid_materials_cache_finish(WORKBENCH_Data *vedata); -void workbench_solid_materials_draw_scene(WORKBENCH_Data *vedata); -void workbench_solid_materials_free(void); - /* workbench_deferred.c */ void workbench_deferred_engine_init(WORKBENCH_Data *vedata); void workbench_deferred_engine_free(void); diff --git a/source/blender/draw/intern/DRW_render.h b/source/blender/draw/intern/DRW_render.h index 223868890f2..e7bef92d437 100644 --- a/source/blender/draw/intern/DRW_render.h +++ b/source/blender/draw/intern/DRW_render.h @@ -357,7 +357,6 @@ typedef bool (DRWCallVisibilityFn)( void DRW_shgroup_instance_batch(DRWShadingGroup *shgroup, struct GPUBatch *batch); -void DRW_shgroup_free(struct DRWShadingGroup *shgroup); void DRW_shgroup_call_add(DRWShadingGroup *shgroup, struct GPUBatch *geom, float (*obmat)[4]); void DRW_shgroup_call_range_add( DRWShadingGroup *shgroup, struct GPUBatch *geom, float (*obmat)[4], uint v_sta, uint v_count); @@ -456,7 +455,6 @@ typedef struct DRWMatrixState { }; } DRWMatrixState; -void DRW_viewport_init(const bContext *C); void DRW_viewport_matrix_get(float mat[4][4], DRWViewportMatrixType type); void DRW_viewport_matrix_get_all(DRWMatrixState *state); void DRW_viewport_matrix_override_set(const float mat[4][4], DRWViewportMatrixType type); @@ -524,8 +522,6 @@ struct DupliObject *DRW_object_get_dupli(const struct Object *ob); void DRW_draw_pass(DRWPass *pass); void DRW_draw_pass_subset(DRWPass *pass, DRWShadingGroup *start_group, DRWShadingGroup *end_group); -void DRW_draw_text_cache_queue(struct DRWTextStore *dt); - void DRW_draw_callbacks_pre_scene(void); void DRW_draw_callbacks_post_scene(void); @@ -562,8 +558,6 @@ bool DRW_state_show_text(void); bool DRW_state_draw_support(void); bool DRW_state_draw_background(void); -struct DRWTextStore *DRW_state_text_cache_get(void); - /* Avoid too many lookups while drawing */ typedef struct DRWContextState { diff --git a/source/blender/draw/intern/draw_cache.h b/source/blender/draw/intern/draw_cache.h index b2843ed3cda..1bf083696ca 100644 --- a/source/blender/draw/intern/draw_cache.h +++ b/source/blender/draw/intern/draw_cache.h @@ -115,7 +115,6 @@ struct GPUBatch *DRW_cache_bone_box_get(void); struct GPUBatch *DRW_cache_bone_box_wire_get(void); struct GPUBatch *DRW_cache_bone_envelope_solid_get(void); struct GPUBatch *DRW_cache_bone_envelope_outline_get(void); -struct GPUBatch *DRW_cache_bone_envelope_head_wire_outline_get(void); struct GPUBatch *DRW_cache_bone_point_get(void); struct GPUBatch *DRW_cache_bone_point_wire_outline_get(void); struct GPUBatch *DRW_cache_bone_stick_get(void); @@ -145,7 +144,6 @@ void DRW_cache_mesh_sculpt_coords_ensure(struct Object *ob); struct GPUBatch *DRW_cache_curve_surface_get(struct Object *ob); struct GPUBatch **DRW_cache_curve_surface_shaded_get( struct Object *ob, struct GPUMaterial **gpumat_array, uint gpumat_array_len); -struct GPUBatch *DRW_cache_curve_surface_verts_get(struct Object *ob); struct GPUBatch *DRW_cache_curve_loose_edges_get(struct Object *ob); struct GPUBatch *DRW_cache_curve_edge_wire_get(struct Object *ob); struct GPUBatch *DRW_cache_curve_face_wireframe_get(Object *ob); @@ -161,9 +159,6 @@ struct GPUBatch *DRW_cache_text_edge_wire_get(struct Object *ob); struct GPUBatch **DRW_cache_text_surface_shaded_get( struct Object *ob, struct GPUMaterial **gpumat_array, uint gpumat_array_len); struct GPUBatch *DRW_cache_text_face_wireframe_get(Object *ob); -/* edit-mode */ -struct GPUBatch *DRW_cache_text_cursor_overlay_get(struct Object *ob); -struct GPUBatch *DRW_cache_text_select_overlay_get(struct Object *ob); /* Surface */ struct GPUBatch *DRW_cache_surf_surface_get(struct Object *ob); diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h index fc9641b06ee..e0c1a3c0c66 100644 --- a/source/blender/draw/intern/draw_common.h +++ b/source/blender/draw/intern/draw_common.h @@ -133,7 +133,6 @@ struct DRWShadingGroup *shgroup_instance_solid(struct DRWPass *pass, struct GPUB struct DRWShadingGroup *shgroup_instance_wire(struct DRWPass *pass, struct GPUBatch *geom); struct DRWShadingGroup *shgroup_instance_screen_aligned(struct DRWPass *pass, struct GPUBatch *geom); struct DRWShadingGroup *shgroup_instance_empty_axes(struct DRWPass *pass, struct GPUBatch *geom); -struct DRWShadingGroup *shgroup_instance_image_plane(struct DRWPass *pass, struct GPUBatch *geom); struct DRWShadingGroup *shgroup_instance_scaled(struct DRWPass *pass, struct GPUBatch *geom); struct DRWShadingGroup *shgroup_instance(struct DRWPass *pass, struct GPUBatch *geom); struct DRWShadingGroup *shgroup_instance_alpha(struct DRWPass *pass, struct GPUBatch *geom, float alpha); diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index 9ff34fe79aa..ce0f961c016 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -409,9 +409,6 @@ extern DRWManager DST; /* TODO : get rid of this and allow multithreaded renderi /* --------------- FUNCTIONS ------------- */ void drw_texture_set_parameters(GPUTexture *tex, DRWTextureFlag flags); -void drw_texture_get_format( - GPUTextureFormat format, bool is_framebuffer, - GPUTextureFormat *r_data_type, int *r_channels, bool *r_is_depth); void *drw_viewport_engine_data_ensure(void *engine_type); diff --git a/source/blender/editors/curve/curve_intern.h b/source/blender/editors/curve/curve_intern.h index cd7a344fcb0..b28f546ee96 100644 --- a/source/blender/editors/curve/curve_intern.h +++ b/source/blender/editors/curve/curve_intern.h @@ -67,7 +67,6 @@ bool select_bpoint(BPoint *bp, bool selstatus, short flag, bool hidden); void FONT_OT_text_insert(struct wmOperatorType *ot); void FONT_OT_line_break(struct wmOperatorType *ot); -void FONT_OT_insert_lorem(struct wmOperatorType *ot); void FONT_OT_case_toggle(struct wmOperatorType *ot); void FONT_OT_case_set(struct wmOperatorType *ot); diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h index 6ce1d71db83..e6ef70009c8 100644 --- a/source/blender/editors/gpencil/gpencil_intern.h +++ b/source/blender/editors/gpencil/gpencil_intern.h @@ -337,7 +337,6 @@ void GPENCIL_OT_layer_change(struct wmOperatorType *ot); void GPENCIL_OT_snap_to_grid(struct wmOperatorType *ot); void GPENCIL_OT_snap_to_cursor(struct wmOperatorType *ot); void GPENCIL_OT_snap_cursor_to_selected(struct wmOperatorType *ot); -void GPENCIL_OT_snap_cursor_to_center(struct wmOperatorType *ot); void GPENCIL_OT_reproject(struct wmOperatorType *ot); diff --git a/source/blender/editors/include/ED_keyframes_draw.h b/source/blender/editors/include/ED_keyframes_draw.h index 6421c5817b0..87c6c0be45a 100644 --- a/source/blender/editors/include/ED_keyframes_draw.h +++ b/source/blender/editors/include/ED_keyframes_draw.h @@ -180,8 +180,6 @@ void summary_to_keylist(struct bAnimContext *ac, struct DLRBT_Tree *keys, int sa void gpencil_to_keylist(struct bDopeSheet *ads, struct bGPdata *gpd, struct DLRBT_Tree *keys, const bool active); /* Grease Pencil Layer */ void gpl_to_keylist(struct bDopeSheet *ads, struct bGPDlayer *gpl, struct DLRBT_Tree *keys); -/* Palette */ -void palette_to_keylist(struct bDopeSheet *ads, struct Palette *palette, struct DLRBT_Tree *keys); /* Mask */ void mask_to_keylist(struct bDopeSheet *UNUSED(ads), struct MaskLayer *masklay, struct DLRBT_Tree *keys); diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 4989d4e9ab9..60220e8797e 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -546,8 +546,6 @@ void ED_view3d_shade_update(struct Main *bmain, struct View3D *v3d, struct ScrAr #define V3D_XRAY_FLAG(v3d) (((v3d)->shading.type == OB_WIRE) ? V3D_SHADING_XRAY_BONE : V3D_SHADING_XRAY) #define V3D_IS_ZBUF(v3d) (((v3d)->shading.flag & V3D_XRAY_FLAG(v3d)) == 0) -void ED_view3d_id_remap(struct View3D *v3d, const struct ID *old_id, struct ID *new_id); - /* view3d_draw_legacy.c */ /* Try avoid using these more move out of legacy. */ void ED_view3d_draw_bgpic_test( diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index 24fb68dba0c..a99081d7683 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -648,13 +648,6 @@ uiPopupBlockHandle *ui_popup_menu_create( uiMenuCreateFunc create_func, void *arg); /* interface_region_popover.c */ -uiBlock *ui_popover_block_refresh( - struct bContext *C, uiPopupBlockHandle *handle, - ARegion *butregion, uiBut *but); -uiPopupBlockHandle *ui_popover_block_create( - struct bContext *C, struct ARegion *butregion, uiBut *but, - uiBlockCreateFunc create_func, uiBlockHandleCreateFunc handle_create_func, - void *arg); uiPopupBlockHandle *ui_popover_panel_create( struct bContext *C, struct ARegion *butregion, uiBut *but, uiMenuCreateFunc create_func, void *arg); @@ -711,7 +704,6 @@ extern void ui_but_text_password_hide(char password_str[UI_MAX_DRAW_STR], uiBut extern uiBut *ui_but_find_select_in_enum(uiBut *but, int direction); extern uiBut *ui_but_find_active_in_region(struct ARegion *ar); extern uiBut *ui_but_find_mouse_over(struct ARegion *ar, const struct wmEvent *event); -void ui_but_pie_dir_visual(RadialDirection dir, float vec[2]); void ui_but_pie_dir(RadialDirection dir, float vec[2]); float ui_block_calc_pie_segment(struct uiBlock *block, const float event_xy[2]); diff --git a/source/blender/editors/mesh/mesh_intern.h b/source/blender/editors/mesh/mesh_intern.h index 9c70fdceb8d..ab0b6e19575 100644 --- a/source/blender/editors/mesh/mesh_intern.h +++ b/source/blender/editors/mesh/mesh_intern.h @@ -123,7 +123,6 @@ void MESH_GGT_spin_redo(struct wmGizmoGroupType *gzgt); void MESH_OT_polybuild_face_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_split_at_cursor(struct wmOperatorType *ot); void MESH_OT_polybuild_dissolve_at_cursor(struct wmOperatorType *ot); -void MESH_OT_polybuild_hover(struct wmOperatorType *ot); /* *** editmesh_inset.c *** */ void MESH_OT_inset(struct wmOperatorType *ot); diff --git a/source/blender/editors/object/object_intern.h b/source/blender/editors/object/object_intern.h index c750a3fb2bd..e4953202ee4 100644 --- a/source/blender/editors/object/object_intern.h +++ b/source/blender/editors/object/object_intern.h @@ -99,7 +99,6 @@ void OBJECT_OT_link_to_collection(struct wmOperatorType *ot); void OBJECT_OT_select_all(struct wmOperatorType *ot); void OBJECT_OT_select_random(struct wmOperatorType *ot); void OBJECT_OT_select_by_type(struct wmOperatorType *ot); -void OBJECT_OT_select_by_layer(struct wmOperatorType *ot); void OBJECT_OT_select_linked(struct wmOperatorType *ot); void OBJECT_OT_select_grouped(struct wmOperatorType *ot); void OBJECT_OT_select_mirror(struct wmOperatorType *ot); diff --git a/source/blender/editors/screen/screen_intern.h b/source/blender/editors/screen/screen_intern.h index 87bcd1b7006..7722f2c9fcc 100644 --- a/source/blender/editors/screen/screen_intern.h +++ b/source/blender/editors/screen/screen_intern.h @@ -44,7 +44,6 @@ struct Main; /* area.c */ void ED_area_data_copy(ScrArea *sa_dst, ScrArea *sa_src, const bool do_free); void ED_area_data_swap(ScrArea *sa1, ScrArea *sa2); -void screen_area_update_region_sizes(wmWindowManager *wm, wmWindow *win, ScrArea *area); void region_toggle_hidden(struct bContext *C, ARegion *ar, const bool do_fade); /* screen_edit.c */ diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index b991755325a..4bfdf39621e 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -342,9 +342,6 @@ void PAINTCURVE_OT_slide(struct wmOperatorType *ot); void PAINTCURVE_OT_draw(struct wmOperatorType *ot); void PAINTCURVE_OT_cursor(struct wmOperatorType *ot); -/* paint_curve_undo.c */ -void ED_paintcurve_undo_push(struct bContext *C, struct wmOperator *op, struct PaintCurve *pc); - /* image painting blur kernel */ typedef struct { float *wdata; /* actual kernel */ diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index 2154061da1b..4e2ecc210f4 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -66,7 +66,6 @@ void sculpt_update_after_dynamic_topology_toggle( void sculpt_dynamic_topology_enable_ex( struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob); -void sculpt_dynamic_topology_enable(bContext *C); void sculpt_dynamic_topology_disable_ex( struct Depsgraph *depsgraph, diff --git a/source/blender/editors/space_clip/clip_intern.h b/source/blender/editors/space_clip/clip_intern.h index b407056ea96..e8488a5d0b6 100644 --- a/source/blender/editors/space_clip/clip_intern.h +++ b/source/blender/editors/space_clip/clip_intern.h @@ -120,7 +120,6 @@ void CLIP_OT_cursor_set(struct wmOperatorType *ot); struct ARegion *ED_clip_has_properties_region(struct ScrArea *sa); void CLIP_OT_tools(struct wmOperatorType *ot); void CLIP_OT_properties(struct wmOperatorType *ot); -void ED_clip_tool_props_register(struct ARegionType *art); /* clip_utils.c */ void clip_graph_tracking_values_iterate_track(struct SpaceClip *sc, struct MovieTrackingTrack *track, void *userdata, @@ -145,8 +144,6 @@ void clip_view_center_to_point(SpaceClip *sc, float x, float y); void clip_draw_sfra_efra(struct View2D *v2d, struct Scene *scene); -void clip_on_marker_selection_changed(struct bContext *C); - /* tracking_ops.c */ struct MovieTrackingTrack *tracking_marker_check_slide(struct bContext *C, const struct wmEvent *event, int *area_r, int *action_r, int *corner_r); diff --git a/source/blender/editors/space_image/image_intern.h b/source/blender/editors/space_image/image_intern.h index 5d9c496d584..db223d7f7a1 100644 --- a/source/blender/editors/space_image/image_intern.h +++ b/source/blender/editors/space_image/image_intern.h @@ -70,7 +70,6 @@ void IMAGE_OT_view_ndof(struct wmOperatorType *ot); void IMAGE_OT_new(struct wmOperatorType *ot); void IMAGE_OT_open(struct wmOperatorType *ot); -void IMAGE_OT_unlink(struct wmOperatorType *ot); void IMAGE_OT_match_movie_length(struct wmOperatorType *ot); void IMAGE_OT_replace(struct wmOperatorType *ot); void IMAGE_OT_reload(struct wmOperatorType *ot); diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h index 41a0dce7a38..23ea14abc31 100644 --- a/source/blender/editors/space_outliner/outliner_intern.h +++ b/source/blender/editors/space_outliner/outliner_intern.h @@ -186,7 +186,6 @@ TreeTraversalAction outliner_find_selected_objects(struct TreeElement *te, void /* outliner_draw.c ---------------------------------------------- */ void draw_outliner(const struct bContext *C); -void restrictbutton_gr_restrict_flag(void *poin, void *poin2, int flag); TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te); @@ -230,17 +229,6 @@ int outliner_flag_is_any_test(ListBase *lb, short flag, const int curlevel); bool outliner_flag_set(ListBase *lb, short flag, short set); bool outliner_flag_flip(ListBase *lb, short flag); -void object_toggle_visibility_cb( - struct bContext *C, struct ReportList *reports, struct Scene *scene, - TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); -void object_toggle_selectability_cb( - struct bContext *C, struct ReportList *reports, struct Scene *scene, - TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); -void object_toggle_renderability_cb( - struct bContext *C, struct ReportList *reports, struct Scene *scene, - TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); - - void item_rename_cb( struct bContext *C, struct ReportList *reports, struct Scene *scene, TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data); diff --git a/source/blender/editors/space_view3d/view3d_intern.h b/source/blender/editors/space_view3d/view3d_intern.h index 164c444d9a5..7a3d2618f07 100644 --- a/source/blender/editors/space_view3d/view3d_intern.h +++ b/source/blender/editors/space_view3d/view3d_intern.h @@ -63,7 +63,6 @@ enum { }; /* view3d_header.c */ -void VIEW3D_OT_layers(struct wmOperatorType *ot); void VIEW3D_OT_toggle_matcap_flip(struct wmOperatorType *ot); /* view3d_ops.c */ @@ -130,9 +129,6 @@ void VIEW3D_OT_fly(struct wmOperatorType *ot); /* view3d_walk.c */ void VIEW3D_OT_walk(struct wmOperatorType *ot); -/* view3d_ruler.c */ -void VIEW3D_OT_ruler(struct wmOperatorType *ot); - /* drawobject.c */ void draw_object_backbufsel( struct Depsgraph *depsgraph, Scene *scene, @@ -159,8 +155,6 @@ void ED_view3d_draw_select_loop( void ED_view3d_draw_depth_loop( struct Depsgraph *depsgraph, Scene *scene, struct ARegion *ar, View3D *v3d); -void ED_view3d_after_add(ListBase *lb, Base *base, const short dflag); - void view3d_update_depths_rect(struct ARegion *ar, struct ViewDepths *d, struct rcti *rect); float view3d_depth_near(struct ViewDepths *d); @@ -276,13 +270,6 @@ void VIEW3D_OT_ruler_add(struct wmOperatorType *ot); void VIEW3D_GT_navigate_rotate(struct wmGizmoType *gzt); -/* draw_volume.c */ -void draw_smoke_volume(struct SmokeDomainSettings *sds, struct Object *ob, - const float min[3], const float max[3], - const float viewnormal[3]); - -void draw_smoke_velocity(struct SmokeDomainSettings *domain, float viewnormal[3]); - /* workaround for trivial but noticeable camera bug caused by imprecision * between view border calculation in 2D/3D space, workaround for bug [#28037]. * without this define we get the old behavior which is to try and align them diff --git a/source/blender/freestyle/FRS_freestyle.h b/source/blender/freestyle/FRS_freestyle.h index 58f1c343235..5757fcc9294 100644 --- a/source/blender/freestyle/FRS_freestyle.h +++ b/source/blender/freestyle/FRS_freestyle.h @@ -50,7 +50,6 @@ extern struct FreestyleGlobals g_freestyle; /* Rendering */ void FRS_initialize(void); void FRS_set_context(struct bContext *C); -void FRS_read_file(struct bContext *C); int FRS_is_freestyle_enabled(struct ViewLayer *view_layer); void FRS_init_stroke_renderer(struct Render *re); void FRS_begin_stroke_rendering(struct Render *re); diff --git a/source/blender/gpu/GPU_batch_presets.h b/source/blender/gpu/GPU_batch_presets.h index d5cabf8bf90..30b1574e19c 100644 --- a/source/blender/gpu/GPU_batch_presets.h +++ b/source/blender/gpu/GPU_batch_presets.h @@ -41,7 +41,6 @@ struct GPUVertFormat; #include "BLI_sys_types.h" /* gpu_batch_presets.c */ -struct GPUVertFormat *GPU_batch_preset_format_3d(void); /* Replacement for gluSphere */ struct GPUBatch *GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT; diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index 737093ddffc..c2e8dcd2ab6 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -155,7 +155,6 @@ GPUNodeLink *GPU_uniform(float *num); GPUNodeLink *GPU_image(struct Image *ima, struct ImageUser *iuser, bool is_data); GPUNodeLink *GPU_color_band(GPUMaterial *mat, int size, float *pixels, float *layer); GPUNodeLink *GPU_builtin(GPUBuiltin builtin); -void GPU_node_link_set_type(GPUNodeLink *link, GPUType type); bool GPU_link(GPUMaterial *mat, const char *name, ...); bool GPU_stack_link(GPUMaterial *mat, struct bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out, ...); diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h index 308205339db..8a603f3caf2 100644 --- a/source/blender/gpu/GPU_shader.h +++ b/source/blender/gpu/GPU_shader.h @@ -95,7 +95,6 @@ void GPU_shader_uniform_buffer(GPUShader *shader, int location, struct GPUUnifor void GPU_shader_uniform_texture(GPUShader *shader, int location, struct GPUTexture *tex); void GPU_shader_uniform_float(GPUShader *shader, int location, float value); void GPU_shader_uniform_int(GPUShader *shader, int location, int value); -void GPU_shader_geometry_stage_primitive_io(GPUShader *shader, int input, int output, int number); int GPU_shader_get_attribute(GPUShader *shader, const char *name); diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 04ce2d6eaa3..1dfbae38213 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -426,12 +426,6 @@ int imb_get_anim_type(const char *name); */ bool IMB_isfloat(struct ImBuf *ibuf); -/** - * - * \attention Defined in divers.c - */ -void IMB_de_interlace(struct ImBuf *ibuf); - /* create char buffer, color corrected if necessary, for ImBufs that lack one */ void IMB_rect_from_float(struct ImBuf *ibuf); /* Create char buffer for part of the image, color corrected if necessary, diff --git a/source/blender/makesrna/RNA_enum_types.h b/source/blender/makesrna/RNA_enum_types.h index f2eaa9d075f..efc3263cdb5 100644 --- a/source/blender/makesrna/RNA_enum_types.h +++ b/source/blender/makesrna/RNA_enum_types.h @@ -242,8 +242,6 @@ struct PointerRNA; struct PropertyRNA; const EnumPropertyItem *rna_TransformOrientation_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free); -const EnumPropertyItem *rna_Sensor_type_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free); -const EnumPropertyItem *rna_Actuator_type_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free); /* Generic functions, return an enum from library data, index is the position * in the linked list can add more for different types as needed */ diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h index 54d8adc4588..4562c034eac 100644 --- a/source/blender/makesrna/intern/rna_internal.h +++ b/source/blender/makesrna/intern/rna_internal.h @@ -136,7 +136,6 @@ void RNA_def_action(struct BlenderRNA *brna); void RNA_def_animation(struct BlenderRNA *brna); void RNA_def_animviz(struct BlenderRNA *brna); void RNA_def_armature(struct BlenderRNA *brna); -void RNA_def_actuator(struct BlenderRNA *brna); void RNA_def_boid(struct BlenderRNA *brna); void RNA_def_brush(struct BlenderRNA *brna); void RNA_def_cachefile(struct BlenderRNA *brna); @@ -181,7 +180,6 @@ void RNA_def_scene(struct BlenderRNA *brna); void RNA_def_view_layer(struct BlenderRNA *brna); void RNA_def_screen(struct BlenderRNA *brna); void RNA_def_sculpt_paint(struct BlenderRNA *brna); -void RNA_def_sensor(struct BlenderRNA *brna); void RNA_def_sequencer(struct BlenderRNA *brna); void RNA_def_smoke(struct BlenderRNA *brna); void RNA_def_space(struct BlenderRNA *brna); @@ -331,7 +329,6 @@ void RNA_api_material(StructRNA *srna); void RNA_api_mesh(struct StructRNA *srna); void RNA_api_meta(struct StructRNA *srna); void RNA_api_object(struct StructRNA *srna); -void RNA_api_object_base_legacy(struct StructRNA *srna); void RNA_api_pose(struct StructRNA *srna); void RNA_api_pose_channel(struct StructRNA *srna); void RNA_api_scene(struct StructRNA *srna); @@ -344,11 +341,7 @@ void RNA_api_wm(struct StructRNA *srna); void RNA_api_space_node(struct StructRNA *srna); void RNA_api_space_text(struct StructRNA *srna); void RNA_api_region_view3d(struct StructRNA *srna); -void RNA_api_sensor(struct StructRNA *srna); -void RNA_api_controller(struct StructRNA *srna); -void RNA_api_actuator(struct StructRNA *srna); void RNA_api_texture(struct StructRNA *srna); -void RNA_api_environment_map(struct StructRNA *srna); void RNA_api_sequences(BlenderRNA *brna, PropertyRNA *cprop); void RNA_api_sequence_elements(BlenderRNA *brna, PropertyRNA *cprop); void RNA_api_sound(struct StructRNA *srna); @@ -505,7 +498,6 @@ const char *rna_translate_ui_text( const char *text, const char *text_ctxt, struct StructRNA *type, struct PropertyRNA *prop, bool translate); /* Internal functions that cycles uses so we need to declare (tsk tsk) */ -void rna_RenderLayer_rect_set(PointerRNA *ptr, const float *values); void rna_RenderPass_rect_set(PointerRNA *ptr, const float *values); #ifdef RNA_RUNTIME diff --git a/source/blender/python/mathutils/mathutils_noise.h b/source/blender/python/mathutils/mathutils_noise.h index f2218b28f8f..469cd9636e6 100644 --- a/source/blender/python/mathutils/mathutils_noise.h +++ b/source/blender/python/mathutils/mathutils_noise.h @@ -28,7 +28,5 @@ #define __MATHUTILS_NOISE_H__ PyMODINIT_FUNC PyInit_mathutils_noise(void); -PyMODINIT_FUNC PyInit_mathutils_noise_types(void); -PyMODINIT_FUNC PyInit_mathutils_noise_metrics(void); #endif /* __MATHUTILS_NOISE_H__ */ diff --git a/source/blender/render/extern/include/RE_pipeline.h b/source/blender/render/extern/include/RE_pipeline.h index 614a1735f44..be7bf4f454b 100644 --- a/source/blender/render/extern/include/RE_pipeline.h +++ b/source/blender/render/extern/include/RE_pipeline.h @@ -260,11 +260,6 @@ void RE_SetView(struct Render *re, float mat[4][4]); void RE_GetView(struct Render *re, float mat[4][4]); void RE_GetViewPlane(struct Render *re, rctf *r_viewplane, rcti *r_disprect); -/* make or free the dbase */ -void RE_Database_CameraOnly( - struct Render *re, struct Main *bmain, struct Scene *scene, - int use_camera_view); - /* set the render threads based on the commandline and autothreads setting */ void RE_init_threadcount(Render *re); diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_api.h b/source/blender/windowmanager/gizmo/WM_gizmo_api.h index 9f05437eaa8..4ceb78be227 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_api.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_api.h @@ -70,8 +70,6 @@ void WM_gizmo_unlink( ListBase *gizmolist, struct wmGizmoMap *gzmap, struct wmGizmo *gz, struct bContext *C); -void WM_gizmo_name_set(struct wmGizmoGroup *gzgroup, struct wmGizmo *gz, const char *name); - bool WM_gizmo_select_unlink(struct wmGizmoMap *gzmap, struct wmGizmo *gz); bool WM_gizmo_select_set(struct wmGizmoMap *gzmap, struct wmGizmo *gz, bool select); void WM_gizmo_highlight_set(struct wmGizmoMap *gzmap, struct wmGizmo *gz); -- cgit v1.2.3