From 4818d1a37d5526cff2e19048741a05740d875051 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Wed, 7 Aug 2024 01:10:53 +0000 Subject: [PATCH] remove deprecations Signed-off-by: Ian Chen --- ogre/src/OgreDepthCamera.cc | 13 ------------- ogre/src/OgreMaterial.cc | 13 ------------- ogre/src/OgreRTShaderSystem.cc | 13 ------------- ogre/src/OgreRenderEngine.cc | 13 ------------- optix/src/OptixRenderEngine.cc | 13 ------------- 5 files changed, 65 deletions(-) diff --git a/ogre/src/OgreDepthCamera.cc b/ogre/src/OgreDepthCamera.cc index e7f2024a4..511a1d5ea 100644 --- a/ogre/src/OgreDepthCamera.cc +++ b/ogre/src/OgreDepthCamera.cc @@ -227,19 +227,6 @@ void OgreDepthCamera::CreatePointCloudTexture() const char *env = std::getenv("GZ_RENDERING_RESOURCE_PATH"); - // TODO(CH3): Deprecated. Remove on tock. - if (!env) - { - env = std::getenv("IGN_RENDERING_RESOURCE_PATH"); - - if (env) - { - gzwarn << "Using deprecated environment variable " - << "[IGN_RENDERING_RESOURCE_PATH]. Please use " - << "[GZ_RENDERING_RESOURCE_PATH] instead." << std::endl; - } - } - std::string resourcePath = (env) ? std::string(env) : gz::rendering::getResourcePath(); diff --git a/ogre/src/OgreMaterial.cc b/ogre/src/OgreMaterial.cc index d0d0f218d..1b442f294 100644 --- a/ogre/src/OgreMaterial.cc +++ b/ogre/src/OgreMaterial.cc @@ -821,19 +821,6 @@ void OgreMaterial::SetDepthMaterial(const double _far, // Get shader parameters path const char *env = std::getenv("GZ_RENDERING_RESOURCE_PATH"); - // TODO(CH3): Deprecated. Remove on tock. - if (!env) - { - env = std::getenv("IGN_RENDERING_RESOURCE_PATH"); - - if (env) - { - gzwarn << "Using deprecated environment variable " - << "[IGN_RENDERING_RESOURCE_PATH]. Please use " - << "[GZ_RENDERING_RESOURCE_PATH] instead." << std::endl; - } - } - std::string resourcePath = (env) ? std::string(env) : gz::rendering::getResourcePath(); diff --git a/ogre/src/OgreRTShaderSystem.cc b/ogre/src/OgreRTShaderSystem.cc index 5d45c14ee..cb7c0cbb2 100644 --- a/ogre/src/OgreRTShaderSystem.cc +++ b/ogre/src/OgreRTShaderSystem.cc @@ -487,19 +487,6 @@ bool OgreRTShaderSystem::Paths(std::string &coreLibsPath, { const char *env = std::getenv("GZ_RENDERING_RESOURCE_PATH"); - // TODO(CH3): Deprecated. Remove on tock. - if (!env) - { - env = std::getenv("IGN_RENDERING_RESOURCE_PATH"); - - if (env) - { - gzwarn << "Using deprecated environment variable " - << "[IGN_RENDERING_RESOURCE_PATH]. Please use " - << "[GZ_RENDERING_RESOURCE_PATH] instead." << std::endl; - } - } - std::string resourcePath = (env) ? std::string(env) : gz::rendering::getResourcePath(); diff --git a/ogre/src/OgreRenderEngine.cc b/ogre/src/OgreRenderEngine.cc index 778467909..d201ee1bf 100644 --- a/ogre/src/OgreRenderEngine.cc +++ b/ogre/src/OgreRenderEngine.cc @@ -577,19 +577,6 @@ void OgreRenderEngine::CreateResources() std::list paths; const char *env = std::getenv("GZ_RENDERING_RESOURCE_PATH"); - // TODO(CH3): Deprecated. Remove on tock. - if (!env) - { - env = std::getenv("IGN_RENDERING_RESOURCE_PATH"); - - if (env) - { - gzwarn << "Using deprecated environment variable " - << "[IGN_RENDERING_RESOURCE_PATH]. Please use " - << "[GZ_RENDERING_RESOURCE_PATH] instead." << std::endl; - } - } - std::string resourcePath = (env) ? std::string(env) : gz::rendering::getResourcePath(); // install path diff --git a/optix/src/OptixRenderEngine.cc b/optix/src/OptixRenderEngine.cc index 041aa3508..18bcb80a6 100644 --- a/optix/src/OptixRenderEngine.cc +++ b/optix/src/OptixRenderEngine.cc @@ -82,19 +82,6 @@ std::string OptixRenderEngine::PtxFile(const std::string& _fileBase) const const char *env= std::getenv("GZ_RENDERING_RESOURCE_PATH"); - // TODO(CH3): Deprecated. Remove on tock. - if (!env) - { - env = std::getenv("IGN_RENDERING_RESOURCE_PATH"); - - if (env) - { - gzwarn << "Using deprecated environment variable " - << "[IGN_RENDERING_RESOURCE_PATH]. Please use " - << "[GZ_RENDERING_RESOURCE_PATH] instead." << std::endl; - } - } - std::string resourcePath = (env) ? std::string(env) : gz::rendering::getResourcePath(); resourcePath = common::joinPaths(resourcePath, "optix");