Skip to content

Commit c738d70

Browse files
CrossVRKaffeine
authored andcommitted
xrEngine/Environment: Removed unused get_ref_count() function.
Based on commit 46c36e6 from Armada651/xray repository.
1 parent 86c8675 commit c738d70

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/xrEngine/Environment.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -469,17 +469,6 @@ void CEnvironment::SelectEnvs(float gt)
469469
}
470470
}
471471

472-
int get_ref_count(IUnknown* ii)
473-
{
474-
if (ii)
475-
{
476-
ii->AddRef();
477-
return ii->Release();
478-
}
479-
else
480-
return 0;
481-
}
482-
483472
void CEnvironment::lerp(float& current_weight)
484473
{
485474
if (bWFX && (wfx_time <= 0.f)) StopWFX();

src/xrEngine/Environment_misc.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,6 @@ void CEnvDescriptorMixer::clear()
386386
*/
387387
}
388388

389-
int get_ref_count(IUnknown* ii);
390-
391389
void CEnvDescriptorMixer::lerp(CEnvironment*, CEnvDescriptor& A, CEnvDescriptor& B, float f, CEnvModifier& Mdf, float modifier_power)
392390
{
393391
float modif_power = 1.f / (modifier_power + 1); // the environment itself

0 commit comments

Comments
 (0)