Commit a2d10187 authored by Cédric Traizet's avatar Cédric Traizet

ENH: removed GetDatasetClassName() and GetDriverClassName()

parent 2c0f23cd
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment