From 46b7964e5cee953e379b31ab9cae58b9985b3b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 24 Nov 2005 12:22:55 +0000 Subject: [PATCH] Got rid of "cnt" debugging stuff. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15110 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WinBorder.cpp | 11 +---------- src/servers/app/WinBorder.h | 2 -- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/servers/app/WinBorder.cpp b/src/servers/app/WinBorder.cpp index af26efc088..01a5a737bb 100644 --- a/src/servers/app/WinBorder.cpp +++ b/src/servers/app/WinBorder.cpp @@ -99,9 +99,7 @@ WinBorder::WinBorder(const BRect &frame, fMinWidth(1.0), fMaxWidth(32768.0), fMinHeight(1.0), - fMaxHeight(32768.0), - - cnt(0) // for debugging + fMaxHeight(32768.0) { // unlike BViews, windows start off as hidden fHidden = true; @@ -306,10 +304,6 @@ WinBorder::UpdateStart() // During updates we only want to draw what's in the update region fInUpdate = true; fRequestSent = false; - -cnt--; -if (cnt != 0) - CRITICAL("Layer::UpdateStart(): wb->cnt != 0 -> Not Allowed!"); } @@ -812,9 +806,6 @@ WinBorder::RequestClientRedraw(const BRegion &invalid) fCumulativeRegion.Include(&updateReg); if (fUpdateRequestsEnabled && !InUpdate() && !fRequestSent) { fInUpdateRegion = fCumulativeRegion; -cnt++; -if (cnt != 1) - CRITICAL("WinBorder::RequestClientRedraw(): cnt != 1 -> Not Allowed!"); fRequestSent = true; // this is here to avoid a possible de-synchronization BMessage msg; diff --git a/src/servers/app/WinBorder.h b/src/servers/app/WinBorder.h index 08cf6629d2..db79c90d99 100644 --- a/src/servers/app/WinBorder.h +++ b/src/servers/app/WinBorder.h @@ -166,8 +166,6 @@ class WinBorder : public Layer { float fMaxWidth; float fMinHeight; float fMaxHeight; - - int cnt; // for debugging }; #endif