Index: src/core/SkUtils.cpp |
diff --git a/src/core/SkUtils.cpp b/src/core/SkUtils.cpp |
index 1af64c2aea4ded5d0ff87bc91cce2601ad94a524..e460ac8f6e9929016a5b0807c6be404bb9f55ce4 100644 |
--- a/src/core/SkUtils.cpp |
+++ b/src/core/SkUtils.cpp |
@@ -395,36 +395,3 @@ size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues, |
} |
return size; |
} |
- |
-/////////////////////////////////////////////////////////////////////////////// |
- |
-#include <stdlib.h> |
- |
-#if 0 |
-static int round_to_K(size_t bytes) { |
- return (bytes + 512) >> 10; |
-} |
-#endif |
- |
-SkAutoMemoryUsageProbe::SkAutoMemoryUsageProbe(const char label[]) |
- : fLabel(label) { |
-#if 0 |
- struct mallinfo mi = mallinfo(); |
- |
- fBytesAllocated = mi.uordblks; |
-#endif |
-} |
- |
-SkAutoMemoryUsageProbe::~SkAutoMemoryUsageProbe() { |
-#if 0 |
- struct mallinfo mi = mallinfo(); |
- |
- printf("SkAutoMemoryUsageProbe "); |
- if (fLabel) { |
- printf("<%s> ", fLabel); |
- } |
- printf("delta %dK, current total allocated %dK\n", |
- round_to_K(mi.uordblks - fBytesAllocated), |
- round_to_K(mi.uordblks)); |
-#endif |
-} |