From 78a80b64fab58173270cd166099bfae31a76f5fa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 May 2025 03:03:08 +0200 Subject: [PATCH] Remove explicit spacing hacks. The new text wrapped functionality works in a way that already does this. --- profiler/src/profiler/TracyLlm.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 7e77202c..c928ca6b 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -245,8 +245,6 @@ void TracyLlm::Draw() int cacheIdx = 0; int treeIdx = 0; int num = 0; - bool first = true; - bool wasToolResponse = false; for( auto& line : *m_chat ) { const auto uw = ImGui::CalcTextSize( ICON_FA_USER ).x; @@ -265,17 +263,6 @@ void TracyLlm::Draw() const auto isAssistant = role == "assistant"; const auto isToolResponse = isUser && line["content"].get_ref().starts_with( "\n" ); - if( first ) - { - first = false; - } - else if( !isToolResponse && !wasToolResponse ) - { - ImGui::Spacing(); - } - - wasToolResponse = isToolResponse; - float diff, offset; if( isToolResponse ) {