aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKurt Schwehr <schwehr@google.com>2018-04-22 07:52:59 -0700
committerKurt Schwehr <schwehr@google.com>2018-04-22 07:55:27 -0700
commit613d95ef99f29fcf42fab27d1ef26adb87745e35 (patch)
treecd824cdd6843ae682f4a674c881f9c423ed285d6 /src
parentfbe1df3ccbc7468db1c635e98b323d28f5b82b60 (diff)
downloadPROJ-613d95ef99f29fcf42fab27d1ef26adb87745e35.tar.gz
PROJ-613d95ef99f29fcf42fab27d1ef26adb87745e35.zip
PJ_isea.c: change local helper functions to void returns
The return values are not used and do not mean anything. Similar to #423
Diffstat (limited to 'src')
-rw-r--r--src/PJ_isea.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/PJ_isea.c b/src/PJ_isea.c
index 57412a38..6c870a2b 100644
--- a/src/PJ_isea.c
+++ b/src/PJ_isea.c
@@ -29,7 +29,7 @@ struct hex {
/* y *must* be positive down as the xy /iso conversion assumes this */
ISEA_STATIC
-int hex_xy(struct hex *h) {
+void hex_xy(struct hex *h) {
if (!h->iso) return 1;
if (h->x >= 0) {
h->y = -h->y - (h->x+1)/2;
@@ -38,12 +38,10 @@ int hex_xy(struct hex *h) {
h->y = -h->y - h->x/2;
}
h->iso = 0;
-
- return 1;
}
ISEA_STATIC
-int hex_iso(struct hex *h) {
+void hex_iso(struct hex *h) {
if (h->iso) return 1;
if (h->x >= 0) {
@@ -55,12 +53,10 @@ int hex_iso(struct hex *h) {
h->z = -h->x - h->y;
h->iso = 1;
- return 1;
}
ISEA_STATIC
-int hexbin2(double width, double x, double y,
- int *i, int *j) {
+void hexbin2(double width, double x, double y, int *i, int *j) {
double z, rx, ry, rz;
double abs_dx, abs_dy, abs_dz;
int ix, iy, iz, s;
@@ -105,7 +101,6 @@ int hexbin2(double width, double x, double y,
hex_xy(&h);
*i = h.x;
*j = h.y;
- return ix * 100 + iy;
}
#ifndef ISEA_STATIC
#define ISEA_STATIC
@@ -1134,4 +1129,3 @@ PJ *PROJECTION(isea) {
return P;
}
-