aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-04-20 09:36:56 +0200
committerPierre Ossman <ossman@cendio.se>2019-04-29 14:14:00 +0200
commit0fb3e3519558531a64f345726e414998f7d9dc5a (patch)
tree5fba75dfbff604f55c256f8bfd7d13724c69b46a /common
parent005db3528df041d1bbd69a07fa41ef7ea4404c19 (diff)
downloadtigervnc-0fb3e3519558531a64f345726e414998f7d9dc5a.tar.gz
tigervnc-0fb3e3519558531a64f345726e414998f7d9dc5a.zip
Remove commented out logging
Diffstat (limited to 'common')
-rw-r--r--common/rdr/FdInStream.cxx10
-rw-r--r--common/rfb/zrleDecode.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/common/rdr/FdInStream.cxx b/common/rdr/FdInStream.cxx
index 011ebf41..1b9a322a 100644
--- a/common/rdr/FdInStream.cxx
+++ b/common/rdr/FdInStream.cxx
@@ -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;
diff --git a/common/rfb/zrleDecode.h b/common/rfb/zrleDecode.h
index 0bfbbe15..b8148672 100644
--- a/common/rfb/zrleDecode.h
+++ b/common/rfb/zrleDecode.h
@@ -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);
}
}