Skip to content

Commit

Permalink
lib: delete unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Aug 26, 2023
1 parent 514fbb7 commit c3023bc
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ Attachment destroy() {
return null;
}

/**
* Return the image format.
*
* @return the format code
*/
int imageFormat() {
return format;
}

/**
* Access the image view.
*
Expand Down
7 changes: 0 additions & 7 deletions lib/src/main/java/com/github/stephengold/vsport/Camera.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ public class Camera {
// *************************************************************************
// constructors

/**
* Instantiate a camera in the default position.
*/
public Camera() {
updateDirectionVectors();
}

/**
* Instantiate a camera in the specified position.
*
Expand Down
10 changes: 0 additions & 10 deletions lib/src/main/java/com/github/stephengold/vsport/DeviceImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,6 @@ long imageHandle() {
return imageHandle;
}

/**
* Return the handle of the associated memory, if any.
*
* @return the handle of the pre-existing {@code VkDeviceMemory}, or null if
* none associated with the image
*/
long memoryHandle() {
return memoryHandle;
}

/**
* Return the width of the image.
*
Expand Down
29 changes: 0 additions & 29 deletions lib/src/main/java/com/github/stephengold/vsport/Mesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,26 +240,6 @@ Vertex copyVertex(int vertexIndex) {
return result;
}

/**
* Count how many attributes the mesh contains.
*
* @return the count (>0)
*/
int countAttributes() {
int result = 1; // for the position buffer
if (colorBuffer != null) {
++result;
}
if (normalBuffer != null) {
++result;
}
if (texCoordsBuffer != null) {
++result;
}

return result;
}

/**
* Count how many vertices the mesh renders, taking indexing into account,
* but not the topology.
Expand Down Expand Up @@ -573,15 +553,6 @@ public Mesh generateUvs(UvsOption option, Vector4fc uCoefficients,
return this;
}

/**
* Access the positions VertexBuffer.
*
* @return the pre-existing buffer (not null)
*/
public VertexBuffer getPositions() {
return positionBuffer;
}

/**
* Test whether the mesh is indexed.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,6 @@ public class CharacterShapeGeometry extends Geometry {
// *************************************************************************
// constructors

/**
* Instantiate a Geometry to visualize the specified character and make the
* Geometry visible.
*
* @param character the character to visualize (not null, alias created)
* @param meshingStrategy how to generate meshes (not null)
*/
public CharacterShapeGeometry(
PhysicsCharacter character, String meshingStrategy) {
this(character, new MeshingStrategy(meshingStrategy));
}

/**
* Instantiate a Geometry to visualize the specified character and make the
* Geometry visible.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,25 +148,6 @@ Mesh applyTo(CollisionShape shape) {

return result;
}

/**
* Return the strategy for generating vertex normals.
*
* @return the enum value (not null)
*/
NormalsOption normals() {
return normals;
}

/**
* Return the strategy for generating vertex positions.
*
* @return option code (≥-6, ≤1)
*/
int positions() {
assert positions >= -6 && positions <= 1 : positions;
return positions;
}
// *************************************************************************
// Object methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,6 @@ public class RigidBodyShapeGeometry extends Geometry {
// *************************************************************************
// constructors

/**
* Instantiate a Geometry to visualize the specified rigid body and make the
* Geometry visible.
*
* @param rigidBody the body to visualize (not null, alias created)
* @param meshingStrategy how to generate meshes (not null)
*/
public RigidBodyShapeGeometry(PhysicsRigidBody rigidBody,
String meshingStrategy) {
this(rigidBody, new MeshingStrategy(meshingStrategy));
}

/**
* Instantiate a Geometry to visualize the specified rigid body and make the
* Geometry visible.
Expand Down

0 comments on commit c3023bc

Please sign in to comment.