Skip to content

Commit c9be803

Browse files
committed
Remove H3_EXPORT where not needed
1 parent 05f9c33 commit c9be803

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/apps/testapps/testSphereCap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static bool _cellWithinCap(const H3Index cell, const SphereCap *cap) {
111111
static bool _testCellRecursive(const H3Index cell, const int minTestRes,
112112
const int maxTestRes) {
113113
SphereCap cap;
114-
if (H3_EXPORT(cellToSphereCap)(cell, &cap) != E_SUCCESS) {
114+
if (cellToSphereCap(cell, &cap) != E_SUCCESS) {
115115
return false;
116116
}
117117

src/h3lib/lib/bbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,5 +396,5 @@ void aabbUpdateWithArcExtrema(AABB *aabb, const Vec3d *v1, const Vec3d *v2,
396396
/** Create a bounding sphere cap for a cell. */
397397
H3Error cellToSphereCap(H3Index cell, SphereCap *out) {
398398
out->cosRadius = PRECOMPUTED_COS_RADIUS[H3_GET_RESOLUTION(cell)];
399-
return H3_EXPORT(cellToVec3)(cell, &out->center);
399+
return cellToVec3(cell, &out->center);
400400
}

src/h3lib/lib/geodesic_iterator.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ void geodesicIteratorStep(IterCellsPolygonCompact *iter, H3Index cell) {
115115
if (!intersects) {
116116
H3Index polygonCell;
117117
Vec3d *firstVert = &poly->geoloop.edges[0].vert;
118-
H3_CHECK(H3_EXPORT(vec3dToCell)(firstVert, cellRes, &polygonCell),
119-
iter);
118+
H3_CHECK(vec3dToCell(firstVert, cellRes, &polygonCell), iter);
120119
if (polygonCell == cell) {
121120
intersects = true;
122121
}

0 commit comments

Comments
 (0)