mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-04-17 12:35:53 +00:00
Remove unneeded check
This commit is contained in:
parent
1cc05dbac3
commit
a6188bb59f
1 changed files with 0 additions and 4 deletions
|
|
@ -895,10 +895,6 @@ ZoneDetectResult *ZDLookup(const ZoneDetect *library, float lat, float lon, floa
|
|||
lonFixedPoint >= minLon &&
|
||||
lonFixedPoint <= maxLon) {
|
||||
|
||||
/* Indices valid? */
|
||||
if(library->metadataOffset + metadataIndex >= library->dataOffset) continue;
|
||||
if(library->dataOffset + polygonIndex >= (uint32_t)library->length) continue;
|
||||
|
||||
const ZDLookupResult lookupResult = ZDPointInPolygon(library, library->dataOffset + polygonIndex, latFixedPoint, lonFixedPoint, (safezone) ? &distanceSqrMin : NULL);
|
||||
if(lookupResult == ZD_LOOKUP_PARSE_ERROR) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue