Skip to content

Commit

Permalink
xrEngine/Environment: Removed unused get_ref_count() function.
Browse files Browse the repository at this point in the history
Based on commit 46c36e6 from Armada651/xray repository.
  • Loading branch information
CrossVR authored and Kaffeine committed Nov 10, 2015
1 parent 86c8675 commit c738d70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/xrEngine/Environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,17 +469,6 @@ void CEnvironment::SelectEnvs(float gt)
}
}

int get_ref_count(IUnknown* ii)
{
if (ii)
{
ii->AddRef();
return ii->Release();
}
else
return 0;
}

void CEnvironment::lerp(float& current_weight)
{
if (bWFX && (wfx_time <= 0.f)) StopWFX();
Expand Down
2 changes: 0 additions & 2 deletions src/xrEngine/Environment_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,6 @@ void CEnvDescriptorMixer::clear()
*/
}

int get_ref_count(IUnknown* ii);

void CEnvDescriptorMixer::lerp(CEnvironment*, CEnvDescriptor& A, CEnvDescriptor& B, float f, CEnvModifier& Mdf, float modifier_power)
{
float modif_power = 1.f / (modifier_power + 1); // the environment itself
Expand Down

0 comments on commit c738d70

Please sign in to comment.