Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1494)

Unified Diff: tests/RefCntTest.cpp

Issue 1063403003: Remove unused InstCounterClass. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RefCntTest.cpp
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp
index cf4acc62332fec41e5a5e7658e85d5274baeeab9..b73618d9f34bd46e4d8e79ab04c20b019d5c667a 100644
--- a/tests/RefCntTest.cpp
+++ b/tests/RefCntTest.cpp
@@ -11,21 +11,6 @@
#include "SkWeakRefCnt.h"
#include "Test.h"
-class InstCounterClass {
-public:
- InstCounterClass() { fCount = gInstCounter++; }
- InstCounterClass(const InstCounterClass& src) {
- fCount = src.fCount;
- gInstCounter += 1;
- }
- virtual ~InstCounterClass() { gInstCounter -= 1; }
-
- static int gInstCounter;
- int fCount;
-};
-
-int InstCounterClass::gInstCounter;
-
static void bounce_ref(void* data) {
SkRefCnt* ref = static_cast<SkRefCnt*>(data);
for (int i = 0; i < 100000; ++i) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698