From 0fb3e3519558531a64f345726e414998f7d9dc5a Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 20 Apr 2016 09:36:56 +0200 Subject: Remove commented out logging --- common/rdr/FdInStream.cxx | 10 ---------- common/rfb/zrleDecode.h | 2 -- 2 files changed, 12 deletions(-) (limited to 'common') 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); } } -- cgit v1.2.3