Opened 8 years ago
Closed 8 years ago
#6701 closed task (fixed)
SHAPE_DEBUG in gdalgeoloc.cpp does not make sense.
Reported by: | Kurt Schwehr | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | minor | Keywords: | |
Cc: |
Description
This obviously can't be working for the average user. From gdalgeoloc.cpp:
#ifdef SHAPE_DEBUG #include "/u/pkg/shapelib/shapefil.h" // <-- What? SHPHandle hSHP = NULL; DBFHandle hDBF = NULL; #endif
Added in r9950.
Have not looked to see where else SHAPE_DEBUG occurs.
The question is fix or remove the stuff inside SHAPE_DEBUG?
Change History (3)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
I also note that the code within SHAPE_DEBUG is inside of notdef, so it is doubly not used.
I will first remove the SHAPE_DEBUG code. After that, I'll remove the notdef stuff. The notdefs were added > 10 years ago in:
I think we are at the point where someone motivated could dig back through older versions if they want to look at the prior implementation while doing a new one.
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Type: | defect → task |
- r35948 Removed SHAPE_DEBUG
- r35949 Removed notdef FindGeoLocPosition() and other dead code
I would suggest removal.