Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -198,29 +198,9 @@ void TracerRealTime::trace() { ...@@ -198,29 +198,9 @@ void TracerRealTime::trace() {
} }
if ((hardFile.good()) && (NULL != file)) { 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->dump(hardFile);
file->empty(); file->empty();
hardFile.flush(); hardFile.flush();
// file.str("");
} }
++iter; ++iter;
...@@ -246,13 +226,6 @@ void TracerRealTime::emptyBuffers() { ...@@ -246,13 +226,6 @@ void TracerRealTime::emptyBuffers() {
dgDEBUGOUT(15); dgDEBUGOUT(15);
} }
// void TracerRealTime::
// emptyBuffer( std::stringstream & file )
// {
// streambuf * pbuf = file.rdbuf ();
// pbuf->file.rdbuf () ->pubsetbuf( fileBuffer,10 );
// }
void TracerRealTime::recordSignal(std::ostream &os, void TracerRealTime::recordSignal(std::ostream &os,
const SignalBase<int> &sig) { const SignalBase<int> &sig) {
dgDEBUGIN(15); dgDEBUGIN(15);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment