Commit 6795adee authored by Olivier Stasse's avatar Olivier Stasse Committed by olivier stasse
Browse files

[src/tracer-real-time] Remove code in comments.

parent 9d2d74ed
......@@ -198,29 +198,9 @@ void TracerRealTime::trace() {
}
if ((hardFile.good()) && (NULL != file)) {
// const unsigned int SIZE = 1024*8;
// char buffer[SIZE];
// streambuf * pbuf = file.rdbuf ();
// pbuf->pubseekpos(0);
// const unsigned int NB_BYTE = pbuf->in_avail ();
// dgDEBUG(35) << "Bytes in buffer: " << NB_BYTE << endl;
// //dgDEBUG(35) << "Copie" <<endl<<file.str ()<< endl;
// for( unsigned int index=0;index<NB_BYTE;index+=SIZE )
// {
// pbuf->pubseekpos( index );
// int nget = pbuf->sgetn( buffer,SIZE );
// dgDEBUG(35) << "Copie ["<<nget<<"] " <<buffer<<endl;
// hardFile.write( buffer,nget );
// }
// hardFile << file.str () << flush;
// file.seekp(0);
file->dump(hardFile);
file->empty();
hardFile.flush();
// file.str("");
}
++iter;
......@@ -246,13 +226,6 @@ void TracerRealTime::emptyBuffers() {
dgDEBUGOUT(15);
}
// void TracerRealTime::
// emptyBuffer( std::stringstream & file )
// {
// streambuf * pbuf = file.rdbuf ();
// pbuf->file.rdbuf () ->pubsetbuf( fileBuffer,10 );
// }
void TracerRealTime::recordSignal(std::ostream &os,
const SignalBase<int> &sig) {
dgDEBUGIN(15);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment