diff --git a/Modules/Adapters/GdalAdapters/include/otbOGRVersionProxy.h b/Modules/Adapters/GdalAdapters/include/otbOGRVersionProxy.h index ec1e158e242ee06f6cb855c2353bdb732171fb06..2377e7ca9152bf86f2bf2072c0e2dcdd34aec638 100644 --- a/Modules/Adapters/GdalAdapters/include/otbOGRVersionProxy.h +++ b/Modules/Adapters/GdalAdapters/include/otbOGRVersionProxy.h @@ -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. * diff --git a/Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy.cxx b/Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy.cxx index 186c09cc5dd035e38833ff213282df99d40812a9..44b6bc37876fed35adf57f09cfe4d8400362b311 100644 --- a/Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy.cxx +++ b/Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy.cxx @@ -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 {