From 51080f1c3838265ead8a27cb75a71a43b76d904c Mon Sep 17 00:00:00 2001 From: "zack%kde.org" Date: Wed, 11 Jan 2006 21:28:52 +0000 Subject: [PATCH] removing more useless debugging code. also adding code for checking pixmaps. --- widget/src/qt/nsScreenManagerQt.h | 5 ----- widget/src/qt/nsScreenQt.cpp | 17 ----------------- widget/src/qt/nsScreenQt.h | 4 ---- 3 files changed, 26 deletions(-) diff --git a/widget/src/qt/nsScreenManagerQt.h b/widget/src/qt/nsScreenManagerQt.h index 35dd08fdd443..cdcbda63d690 100644 --- a/widget/src/qt/nsScreenManagerQt.h +++ b/widget/src/qt/nsScreenManagerQt.h @@ -64,11 +64,6 @@ private: nsCOMPtr *screens; QDesktopWidget *desktop; int nScreens; - -#ifdef DEBUG - PRUint32 mID; -#endif - }; #endif // nsScreenManagerQt_h___ diff --git a/widget/src/qt/nsScreenQt.cpp b/widget/src/qt/nsScreenQt.cpp index b35464eb179b..ac5d5ae2985b 100644 --- a/widget/src/qt/nsScreenQt.cpp +++ b/widget/src/qt/nsScreenQt.cpp @@ -44,21 +44,9 @@ #include "qtlog.h" -#ifdef DEBUG -PRUint32 gScreenCount = 0; -PRUint32 gScreenID = 0; -#endif - nsScreenQt::nsScreenQt(int aScreen) { screen = aScreen; - -#ifdef DEBUG - gScreenCount++; - mID = gScreenID++; - PR_LOG(gQtLogModule, QT_BASIC, - ("nsScreenQt CTOR (%p) ID: %d, Count: %d\n", this, mID, gScreenCount)); -#endif // nothing else to do. I guess we could cache a bunch of information // here, but we want to ask the device at runtime in case anything // has changed. @@ -66,11 +54,6 @@ nsScreenQt::nsScreenQt(int aScreen) nsScreenQt::~nsScreenQt() { -#ifdef DEBUG - gScreenCount--; - PR_LOG(gQtLogModule, QT_BASIC, - ("nsScreenQt DTOR (%p) ID: %d, Count: %d\n", this, mID, gScreenCount)); -#endif // nothing to see here. } diff --git a/widget/src/qt/nsScreenQt.h b/widget/src/qt/nsScreenQt.h index d99c081669aa..a3f5314a8671 100644 --- a/widget/src/qt/nsScreenQt.h +++ b/widget/src/qt/nsScreenQt.h @@ -56,10 +56,6 @@ public: private: int screen; -#ifdef DEBUG - PRUint32 mID; -#endif - }; #endif // nsScreenQt_h___