From 268cab7f8913b56f154bc98fee5541edaa324e25 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 5 Jun 2026 17:03:06 +0200 Subject: [PATCH] Remove UserData::GetConfigLocation(). --- profiler/src/profiler/TracyUserData.cpp | 6 ------ profiler/src/profiler/TracyUserData.hpp | 2 -- profiler/src/profiler/TracyView_TraceInfo.cpp | 10 ---------- 3 files changed, 18 deletions(-) diff --git a/profiler/src/profiler/TracyUserData.cpp b/profiler/src/profiler/TracyUserData.cpp index 872e9f29..d1a8795e 100644 --- a/profiler/src/profiler/TracyUserData.cpp +++ b/profiler/src/profiler/TracyUserData.cpp @@ -276,12 +276,6 @@ FILE* UserData::OpenFileLegacy( const char* filename ) return f; } -const char* UserData::GetConfigLocation() const -{ - assert( Valid() ); - return GetSavePathLegacy( m_program.c_str(), m_time, nullptr ); -} - void UserData::LoadLegacyDescription() { constexpr auto FileDescription = "description"; diff --git a/profiler/src/profiler/TracyUserData.hpp b/profiler/src/profiler/TracyUserData.hpp index d8642507..ee7c1a88 100644 --- a/profiler/src/profiler/TracyUserData.hpp +++ b/profiler/src/profiler/TracyUserData.hpp @@ -40,8 +40,6 @@ public: void Save(); - const char* GetConfigLocation() const; - private: FILE* OpenFile( bool write ); FILE* OpenFileLegacy( const char* filename ); diff --git a/profiler/src/profiler/TracyView_TraceInfo.cpp b/profiler/src/profiler/TracyView_TraceInfo.cpp index 34fb3bcf..26272379 100644 --- a/profiler/src/profiler/TracyView_TraceInfo.cpp +++ b/profiler/src/profiler/TracyView_TraceInfo.cpp @@ -41,16 +41,6 @@ void View::DrawInfo() TextFocused( "File:", m_filename.c_str() ); if( m_userData.Valid() ) { - const auto save = m_userData.GetConfigLocation(); - if( save ) - { - ImGui::SameLine(); - if( ImGui::SmallButton( ICON_FA_FOLDER ) ) - { - ImGui::SetClipboardText( save ); - } - TooltipIfHovered( "Copy user settings location to clipboard." ); - } } } {