Skip to content

Commit

Permalink
Remove more deprecated env vars (#1031)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Aug 9, 2024
1 parent ea3ff7d commit 774326e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 65 deletions.
13 changes: 0 additions & 13 deletions ogre/src/OgreDepthCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
13 changes: 0 additions & 13 deletions ogre/src/OgreMaterial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
13 changes: 0 additions & 13 deletions ogre/src/OgreRTShaderSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
13 changes: 0 additions & 13 deletions ogre/src/OgreRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -577,19 +577,6 @@ void OgreRenderEngine::CreateResources()
std::list<std::string> 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
Expand Down
13 changes: 0 additions & 13 deletions optix/src/OptixRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 774326e

Please sign in to comment.