From 75a28b0da56615a8d6d267f779d3580f138f3129 Mon Sep 17 00:00:00 2001 From: Wyatt Gillette Date: Mon, 19 Feb 2024 08:49:06 +0100 Subject: [PATCH] BoundingSphereDebug: removed the unused variable radius and its getter method getRadius() (#2196) BoundingSphereDebug: removed the unused variable radius and its getter method getRadius() --- .../environment/util/BoundingSphereDebug.java | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/environment/util/BoundingSphereDebug.java b/jme3-core/src/main/java/com/jme3/environment/util/BoundingSphereDebug.java index c5510dedde..622164e4a1 100644 --- a/jme3-core/src/main/java/com/jme3/environment/util/BoundingSphereDebug.java +++ b/jme3-core/src/main/java/com/jme3/environment/util/BoundingSphereDebug.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2021 jMonkeyEngine + * Copyright (c) 2009-2024 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -56,14 +56,6 @@ public class BoundingSphereDebug extends Mesh { protected int radialSamples = 32; protected boolean useEvenSlices; protected boolean interior; - /** - * the distance from the center point each point falls on - */ - public float radius; - - public float getRadius() { - return radius; - } public BoundingSphereDebug() { setGeometryData(); @@ -151,27 +143,23 @@ private void setIndexData() { if (segDone == radialSamples || segDone == radialSamples * 2) { idx++; } - } - } - /** * Convenience factory method that creates a debug bounding-sphere geometry + * * @param assetManager the assetManager * @return the bounding sphere debug geometry. */ public static Geometry createDebugSphere(AssetManager assetManager) { - BoundingSphereDebug b = new BoundingSphereDebug(); - Geometry geom = new Geometry("BoundingDebug", b); - + BoundingSphereDebug mesh = new BoundingSphereDebug(); + Geometry geom = new Geometry("BoundingDebug", mesh); Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat.setBoolean("VertexColor", true); mat.getAdditionalRenderState().setWireframe(true); - geom.setMaterial(mat); return geom; - } + }