Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
madd-games committed Mar 23, 2024
1 parent 93b7f73 commit c43716d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions src/layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,3 @@ void layer_get_bounding_box(const layer_t *layer, float box[4][4])
if (aabb[0][0] > aabb[1][0]) memset(aabb, 0, sizeof(aabb));
bbox_from_aabb(box, aabb);
}

void layer_wrap(layer_t *layer, int axis, int sign)
{
float bbox[4][4];
int aabb[2][3];

layer_get_bounding_box(layer, bbox);
bbox_to_aabb(bbox, aabb);
volume_wrap(layer->volume, axis, sign, aabb);
}
6 changes: 0 additions & 6 deletions src/layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,4 @@ layer_t *layer_copy(layer_t *other);
*/
void layer_get_bounding_box(const layer_t *layer, float box[4][4]);

/*
* Function: layer_wrap
* Move all voxels in the given-signed direction on the given axis, and wrap around.
*/
void layer_wrap(layer_t *layer, int axis, int sign);

#endif // LAYER_H

0 comments on commit c43716d

Please sign in to comment.