Skip to content

Commit

Permalink
Describer: delete a protected method
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 13, 2024
1 parent ac2739a commit 7863a3a
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions HeartLibrary/src/main/java/jme3utilities/debug/Describer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2013-2023, Stephen Gold
Copyright (c) 2013-2024 Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -1288,37 +1288,6 @@ protected String describe(TextureKey textureKey) {
return result;
}

/**
* Generate a textual description for a subset of the controls added to the
* specified Spatial. TODO delete
*
* @param spatial the Spatial to describe (not null, unaffected)
* @param enabled if true, describe only the enabled controls; if false,
* describe only the disabled controls
* @return a description (not null, may be empty)
*/
protected String describeControls(Spatial spatial, boolean enabled) {
StringBuilder result = new StringBuilder(20);
boolean addSeparators = false;

int count = spatial.getNumControls();
for (int controlI = 0; controlI < count; ++controlI) {
Control control = spatial.getControl(controlI);
boolean isEnabled = isControlEnabled(control);
if (isEnabled == enabled) {
if (addSeparators) {
result.append(listSeparator);
} else {
addSeparators = true;
}
String description = describe(control);
result.append(description);
}
}

return result.toString();
}

/**
* Describe the specified half extents.
*
Expand Down

0 comments on commit 7863a3a

Please sign in to comment.