Remove unused transient param from profile events

This commit is contained in:
Wojtek Figat
2021-05-13 12:04:10 +02:00
parent 389eee22e3
commit 32806e8f4e
2 changed files with 12 additions and 14 deletions

View File

@@ -154,7 +154,7 @@ int32 ProfilerCPU::BeginEvent()
return thread->BeginEvent();
}
int32 ProfilerCPU::BeginEvent(const Char* name, bool transient)
int32 ProfilerCPU::BeginEvent(const Char* name)
{
if (!Enabled)
return -1;
@@ -165,7 +165,7 @@ int32 ProfilerCPU::BeginEvent(const Char* name, bool transient)
auto src = name;
if (src)
{
auto end = dst + ARRAY_COUNT(e.Name) - 1;
const auto end = dst + ARRAY_COUNT(e.Name) - 1;
while (*src && dst != end)
*dst++ = *src++;
}
@@ -173,7 +173,7 @@ int32 ProfilerCPU::BeginEvent(const Char* name, bool transient)
return index;
}
int32 ProfilerCPU::BeginEvent(const char* name, bool transient)
int32 ProfilerCPU::BeginEvent(const char* name)
{
if (!Enabled)
return -1;
@@ -184,7 +184,7 @@ int32 ProfilerCPU::BeginEvent(const char* name, bool transient)
auto src = name;
if (src)
{
auto end = dst + ARRAY_COUNT(e.Name) - 1;
const auto end = dst + ARRAY_COUNT(e.Name) - 1;
while (*src && dst != end)
*dst++ = *src++;
}