]> source.dussan.org Git - tigervnc.git/commitdiff
Remove commented out logging
authorPierre Ossman <ossman@cendio.se>
Wed, 20 Apr 2016 07:36:56 +0000 (09:36 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 29 Apr 2019 12:14:00 +0000 (14:14 +0200)
common/rdr/FdInStream.cxx
common/rfb/zrleDecode.h

index 011ebf41f9be96d00cfde85c7fc0b1f151a1b34b..1b9a322a31738d645db5cebd631f1de1b1603b06 100644 (file)
@@ -215,20 +215,10 @@ int FdInStream::readWithTimeoutOrCallback(void* buf, int len, bool wait)
 
   if (timing) {
     gettimeofday(&after, 0);
-//      fprintf(stderr,"%d.%06d\n",(after.tv_sec - before.tv_sec),
-//              (after.tv_usec - before.tv_usec));
     int newTimeWaited = ((after.tv_sec - before.tv_sec) * 10000 +
                          (after.tv_usec - before.tv_usec) / 100);
     int newKbits = n * 8 / 1000;
 
-//      if (newTimeWaited == 0) {
-//        fprintf(stderr,"new kbps infinite t %d k %d\n",
-//                newTimeWaited, newKbits);
-//      } else {
-//        fprintf(stderr,"new kbps %d t %d k %d\n",
-//                newKbits * 10000 / newTimeWaited, newTimeWaited, newKbits);
-//      }
-
     // limit rate to between 10kbit/s and 40Mbit/s
 
     if (newTimeWaited > newKbits*1000) newTimeWaited = newKbits*1000;
index 0bfbbe152dd443ede674001572ddbbe18ae05dce..b8148672c368a32c76bd9f569517ace65f4427ef 100644 (file)
@@ -172,8 +172,6 @@ void ZRLE_DECODE (const Rect& r, rdr::InStream* is,
         }
       }
 
-      //fprintf(stderr,"copying data to screen %dx%d at %d,%d\n",
-      //t.width(),t.height(),t.tl.x,t.tl.y);
       pb->imageRect(pf, t, buf);
     }
   }