From 1999352004ccc5a7b15d6c7b483671a928d2bd70 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 25 Mar 2020 00:00:15 +0100 Subject: [PATCH] Remove junk. --- server/TracyView.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0a0a0066..114b8028 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -197,27 +197,6 @@ void View::SetTextEditorFile( const char* fileName, int line ) { m_sourceViewFile = fileName; m_sourceView->Open( fileName, line ); - -#if 0 - // DUPA - if( !m_textEditorFile || strcmp( m_textEditorFile, fileName ) != 0 ) - { - FILE* f = fopen( fileName, "rb" ); - fseek( f, 0, SEEK_END ); - const auto sz = ftell( f ); - fseek( f, 0, SEEK_SET ); - auto data = new char[sz+1]; - fread( data, 1, sz, f ); - fclose( f ); - data[sz] = '\0'; - m_textEditor->SetText( data ); - delete[] data; - } - - m_textEditor->SetCursorPosition( TextEditor::Coordinates( line-1, 0 ) ); - - m_textEditorFile = fileName; -#endif } const char* View::ShortenNamespace( const char* name ) const