More cleanup

This commit is contained in:
2023-02-09 09:57:23 +01:00
parent 2a762d216d
commit 67edbd8be6
3 changed files with 16 additions and 5 deletions

View File

@@ -68,6 +68,8 @@ struct TaskDebugStackFormatter
return std::string((long long)in_indent * 2, ' ');
}
};
#if SQUID_ENABLE_TASK_DEBUG
static std::string FormatDebugString(std::string in_str)
{
std::replace(in_str.begin(), in_str.end(), '\n', ' ');
@@ -75,7 +77,6 @@ static std::string FormatDebugString(std::string in_str)
}
//--- SetDebugName Awaiter ---//
#if SQUID_ENABLE_TASK_DEBUG
struct SetDebugName
{
// Sets a Task's debug name field