mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Remove junk.
This commit is contained in:
parent
4068ab30e8
commit
1999352004
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user