Opened 8 years ago
Closed 8 years ago
#6263 closed defect (fixed)
ogrbnadatasource.cpp OGRBNADataSource::TestCapability() possibly wrong
Reported by: | Kurt Schwehr | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
Was returning FALSE for ODsCDeleteLayer intensional? If FALSE was intended, then we should remove the unused part of this #if 0 else. Was there a reason to specifically call out the false for delete layer in r11853?
-
ogrbnadatasource.cpp
83 82 { 84 83 if( EQUAL(pszCap,ODsCCreateLayer) ) 85 84 return TRUE; 85 #if 0 86 // TODO: Is this really false for both? 86 87 else if( EQUAL(pszCap,ODsCDeleteLayer) ) 87 88 return FALSE; 88 89 else 89 90 return FALSE; 91 #else 92 return FALSE; 93 #endif 90 94 }
https://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/bna/ogrbnadatasource.cpp?rev=11853
Note:
See TracTickets
for help on using tickets.
trunk r32139 "BNA: remove dead code (#6263)"