Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index 00623ca7056b596241edfcded577b0cb235e9eb3..761983178d4b0f4d2f316744eed9d4ff818474e4 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -645,26 +645,6 @@ struct AccessorDescriptor { |
#define DOUBLE_POINTER_ALIGN(value) \ |
(((value) + kDoubleAlignmentMask) & ~kDoubleAlignmentMask) |
-// Support for tracking C++ memory allocation. Insert TRACK_MEMORY("Fisk") |
-// inside a C++ class and new and delete will be overloaded so logging is |
-// performed. |
-// This file (globals.h) is included before log.h, so we use direct calls to |
-// the Logger rather than the LOG macro. |
-#ifdef DEBUG |
-#define TRACK_MEMORY(name) \ |
- void* operator new(size_t size) { \ |
- void* result = ::operator new(size); \ |
- Logger::NewEventStatic(name, result, size); \ |
- return result; \ |
- } \ |
- void operator delete(void* object) { \ |
- Logger::DeleteEventStatic(name, object); \ |
- ::operator delete(object); \ |
- } |
-#else |
-#define TRACK_MEMORY(name) |
-#endif |
- |
// CPU feature flags. |
enum CpuFeature { |