From ff45edbece699c2f19158a04d1759f679efa26c9 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 24 Aug 2023 16:01:43 +0900 Subject: [PATCH] Cleanup ElectricityEffect class --- src/electricity_effect.cc | 6 +----- src/electricity_effect.h | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/electricity_effect.cc b/src/electricity_effect.cc index aae4247..a9123af 100644 --- a/src/electricity_effect.cc +++ b/src/electricity_effect.cc @@ -13,11 +13,7 @@ ElectricityEffect::ElectricityEffect(Vector3 center, float radius, int line_count, float lifetime) - : cylinders(), - center(center), - cylinder_radius(CYLINDER_MAX_RADIUS), - lifetime(lifetime), - timer(0.0F) { + : cylinders(), lifetime(lifetime), timer(0.0F) { cylinders.reserve(line_count); // Generate cylinders. diff --git a/src/electricity_effect.h b/src/electricity_effect.h index 1ffcf76..d61e914 100644 --- a/src/electricity_effect.h +++ b/src/electricity_effect.h @@ -28,8 +28,6 @@ class ElectricityEffect { }; std::vector cylinders; - Vector3 center; - float cylinder_radius; float lifetime; float timer; };