mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-12 19:06:09 -10:00
* Remove dead BSP-parsing and software-interp code model_interp_defpoints has had no callers since model_interp_sub was removed (1ef7688fa), and the parse_bsp and find_tri_counts chains have had no entry point since bsp_polygon_data replaced them (c62037235). Remove them, along with the globals that only they read: tri_count, model_radius, GEOMETRY_NOISE, Interp_flags, Interp_lights, Interp_thrust_scale_subobj and Interp_warp_scale_*. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Remove the interp-data allocator; give the BE swap path its own vertex list On big-endian builds, swap_bsp_defpoints was the only remaining caller of model_allocate_interp_data, and swap_bsp_flatpoly the only reader of the buffers it allocated (Interp_verts). Pass a local vertex list through the BSP swap functions instead, and remove the allocator, the deallocator, and the Interp_* buffers and lighting globals it managed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Remove write-only interp state and the functions that only set it The thruster, outline, detail-lock, insignia, forced-bitmap and box-scale globals in modelinterp.cpp are written but never read; rendering takes these from model_render_params instead. Remove them, along with model_set_thrust and model_set_outline_color (no callers), model_set_detail_level (its calls sit beside the real set_detail_level_lock), interp_clear_instance, and the unused modelstats_num_sortnorms and modelstats_num_boxes counters. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Drop the unused big-endian flat-poly recompute swap_bsp_flatpoly recomputed the center and radius of pre-2003 flat polygons, but nothing reads those fields on any platform: collision reads the normal and vertices, bsp_polygon_data reads the count, color and vertices, and flash_ball skips flat polygons. Remove it, along with the vertex list that only it needed, so swap_bsp_data is back to its original shape with only the dead code deleted. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remove unused Interp_detail_level --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>