Skip to content

Commit

Permalink
Remove upstream header
Browse files Browse the repository at this point in the history
  • Loading branch information
zachasme committed Dec 1, 2022
1 parent 4a532cc commit d6cf8a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 214 deletions.
13 changes: 6 additions & 7 deletions h3/src/opclass_gist.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <h3api.h> // Main H3 include
#include "extension.h"
#include "upstream/h3Index.h"

#define H3_ROOT_INDEX -1

Expand Down Expand Up @@ -72,13 +71,13 @@ gist_cmp(H3Index a, H3Index b)
}

/* no shared basecell */
if (H3_GET_BASE_CELL(a) != H3_GET_BASE_CELL(b))
if (getBaseCellNumber(a) != getBaseCellNumber(b))
{
return 0;
}

aRes = H3_GET_RESOLUTION(a);
bRes = H3_GET_RESOLUTION(b);
aRes = getResolution(a);
bRes = getResolution(b);

/* ---- */

Expand Down Expand Up @@ -123,13 +122,13 @@ common_ancestor(H3Index a, H3Index b)
}

/* do not even share the basecell */
if (H3_GET_BASE_CELL(a) != H3_GET_BASE_CELL(b))
if (getBaseCellNumber(a) != getBaseCellNumber(b))
{
return H3_ROOT_INDEX;
}

aRes = H3_GET_RESOLUTION(a);
bRes = H3_GET_RESOLUTION(b);
aRes = getResolution(a);
bRes = getResolution(b);
bigRes = (aRes > bRes) ? aRes : bRes;
for (int i = bigRes; i > 0; i--)
/* iterate back basecells */
Expand Down
207 changes: 0 additions & 207 deletions h3/src/upstream/h3Index.h

This file was deleted.

0 comments on commit d6cf8a8

Please sign in to comment.