From c9ebc3d43506ad505153f1dc37ca92fdc3131d25 Mon Sep 17 00:00:00 2001 From: korenkonder Date: Mon, 18 Dec 2023 01:53:40 +0300 Subject: [PATCH] Removed unused field and fixed some formatting --- src/CRE/auth_2d.cpp | 2 -- src/CRE/effect.cpp | 4 +--- src/CRE/render.cpp | 2 -- src/CRE/rob/rob.cpp | 1 - src/CRE/rob/skin_param.cpp | 1 - src/ReDIVA/data_test/motion_test.cpp | 1 - src/ReDIVA/nvenc/nvenc_encoder.cpp | 1 - src/ReDIVA/pv_game/pv_game.cpp | 2 -- src/ReDIVA/pv_game/pv_game_pv_data.cpp | 1 - 9 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/CRE/auth_2d.cpp b/src/CRE/auth_2d.cpp index 7ec0996a..fc6b885c 100644 --- a/src/CRE/auth_2d.cpp +++ b/src/CRE/auth_2d.cpp @@ -268,7 +268,6 @@ void AetComp::put_number_sprite(int32_t value, int32_t max_digits, } } - aet_layout_data::aet_layout_data() : width(), height() { mat = mat4_identity; opacity = 1.0f; @@ -276,7 +275,6 @@ aet_layout_data::aet_layout_data() : width(), height() { mode = RESOLUTION_MODE_HD; } - void aet_layout_data::put_sprite(int32_t spr_id, spr::SprAttr attr, spr::SprPrio prio, vec2* pos, aet_layout_data* layout, const sprite_database* spr_db) { if (!layout) diff --git a/src/CRE/effect.cpp b/src/CRE/effect.cpp index 49098a52..b38d6813 100644 --- a/src/CRE/effect.cpp +++ b/src/CRE/effect.cpp @@ -1139,7 +1139,6 @@ static const size_t snow_ptcl_fallen_count = 0x2000; static star_catalog star_catalog_data; -static GL::ShaderStorageBuffer water_ssbo; static GL::UniformBuffer water_particle_scene_ubo; static float_t flt_140C9A588 = 2.0f; @@ -3308,7 +3307,6 @@ void EffectRipple::sub_1403584A0(RenderTexture* rt) { gl_state_bind_framebuffer(0); } - void EffectRipple::sub_140358690() { ripple_emit_draw_data& v1 = field_178; v1.data.position = field_50.position; @@ -3885,7 +3883,7 @@ void ParticleEmitterRob::ctrl(float_t delta_time) { ptcl->direction = rand_vec * 0.65f + (velocity_diff * diff_scale + prev_velocity); float_t size_scale = rand_a_get_float();; - + ptcl->flags = 0x01; ptcl->size = max_def(size_scale * size_scale * particle_size, 1.0f); diff --git a/src/CRE/render.cpp b/src/CRE/render.cpp index 178cebe8..11ce497d 100644 --- a/src/CRE/render.cpp +++ b/src/CRE/render.cpp @@ -1214,7 +1214,6 @@ namespace rndr { update = 1; } - void Render::set_scene_fade_color(const vec3& value, int32_t index) { scene_fade_color[index] = value; @@ -1563,7 +1562,6 @@ namespace rndr { gl_state_end_event(); } - void Render::calc_exposure(camera* cam) { bool v2 = false; if (!reset_exposure) { diff --git a/src/CRE/rob/rob.cpp b/src/CRE/rob/rob.cpp index 1c370d77..470e462c 100644 --- a/src/CRE/rob/rob.cpp +++ b/src/CRE/rob/rob.cpp @@ -10159,7 +10159,6 @@ static void sub_14041DAC0(rob_chara_bone_data* a1) { sub_140415B30(&a1->eyelid); } - static void rob_chara_bone_data_motion_blend_mot_free(rob_chara_bone_data* rob_bone_data) { rob_chara_bone_data_motion_blend_mot_list_free(rob_bone_data, 0); for (motion_blend_mot*& i : rob_bone_data->motions) diff --git a/src/CRE/rob/skin_param.cpp b/src/CRE/rob/skin_param.cpp index 633104ee..7a513df4 100644 --- a/src/CRE/rob/skin_param.cpp +++ b/src/CRE/rob/skin_param.cpp @@ -96,7 +96,6 @@ SkinParamManager* skin_param_manager; std::map> skin_param_storage; - SkinParam::CollisionParam::CollisionParam() : type(), node_idx(), pos() { radius = 0.2f; } diff --git a/src/ReDIVA/data_test/motion_test.cpp b/src/ReDIVA/data_test/motion_test.cpp index 0c1d7fc3..413d62b5 100644 --- a/src/ReDIVA/data_test/motion_test.cpp +++ b/src/ReDIVA/data_test/motion_test.cpp @@ -313,7 +313,6 @@ public: virtual void Callback(dw::SelectionListener::CallbackData* data) override; }; - class GameCameraButtonProc : public dw::SelectionAdapter { public: GameCameraButtonProc(); diff --git a/src/ReDIVA/nvenc/nvenc_encoder.cpp b/src/ReDIVA/nvenc/nvenc_encoder.cpp index e0839f32..9edef4ce 100644 --- a/src/ReDIVA/nvenc/nvenc_encoder.cpp +++ b/src/ReDIVA/nvenc/nvenc_encoder.cpp @@ -8,7 +8,6 @@ #include #include - static void print_nvenc_status(int32_t line, NVENCSTATUS status) { switch (status) { #define ERR(s) \ diff --git a/src/ReDIVA/pv_game/pv_game.cpp b/src/ReDIVA/pv_game/pv_game.cpp index 67b6e195..acdc92b0 100644 --- a/src/ReDIVA/pv_game/pv_game.cpp +++ b/src/ReDIVA/pv_game/pv_game.cpp @@ -2739,7 +2739,6 @@ bool pv_game::load() { continue; } - for (auto& j : i.auth_3d_frame_list) switch (j.second) { case -6: @@ -3427,7 +3426,6 @@ bool pv_game::load() { break; } - for (uint32_t& i : data.stgpvhrc_obj_set_ids) if (object_storage_load_obj_set_check_not_read(i)) { wait_load |= true; diff --git a/src/ReDIVA/pv_game/pv_game_pv_data.cpp b/src/ReDIVA/pv_game/pv_game_pv_data.cpp index 59eef78d..fb22ae26 100644 --- a/src/ReDIVA/pv_game/pv_game_pv_data.cpp +++ b/src/ReDIVA/pv_game/pv_game_pv_data.cpp @@ -366,7 +366,6 @@ int64_t pv_game_pv_data::ctrl(float_t delta_time, int64_t curr_time, bool a4) { break; }*/ - dsc_data* prev_dsc_data_ptr = dsc_data_ptr; targets_remaining = 0;