Skip to content
Snippets Groups Projects
Commit a2d10187 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: removed GetDatasetClassName() and GetDriverClassName()

parent 2c0f23cd
No related branches found
No related tags found
No related merge requests found
......@@ -154,20 +154,6 @@ namespace version_proxy
OTBGdalAdapters_EXPORT
bool SyncToDisk(GDALDatasetType * dataset);
/**
* \return The name of the dataset class behind the implementation
* (OGRDataSource for gdal 1.x and GdalDataset for gdal 2.x)
*/
OTBGdalAdapters_EXPORT
std::string GetDatasetClassName();
/**
* \return The name of the driver class behind the implementation
* (OGRSFDriver for gdal 1.x and GDALDriver for gdal 2.x)
*/
OTBGdalAdapters_EXPORT
std::string GetDriverClassName();
/**
* Return the list of files composing the dataset.
*
......
......@@ -128,24 +128,6 @@ GDALDriverType * GetDriverByName(const char * name)
#endif
}
std::string GetDatasetClassName()
{
#if GDAL_VERSION_NUM<2000000
return std::string("OGRDataSource");
#else
return std::string("GDALDataset");
#endif
}
std::string GetDriverClassName()
{
#if GDAL_VERSION_NUM<2000000
return std::string("OGRSFDriver");
#else
return std::string("GDALDriver");
#endif
}
#if GDAL_VERSION_NUM>=2000000
namespace raii
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment