Index: src/base/logging.h |
diff --git a/src/base/logging.h b/src/base/logging.h |
index de91077142bdfc08f1dce4ffa4c53b0dc6f757c3..23b6b9e54152a77753f0fa975efbd65bdad61231 100644 |
--- a/src/base/logging.h |
+++ b/src/base/logging.h |
@@ -152,29 +152,6 @@ inline void CheckNonEqualsHelper(const char* file, |
} |
-// Helper function used by the CHECK function when given floating |
-// point arguments. Should not be called directly. |
-inline void CheckEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- double expected, |
- const char* value_source, |
- double value) { |
- // Force values to 64 bit memory to truncate 80 bit precision on IA32. |
- volatile double* exp = new double[1]; |
- *exp = expected; |
- volatile double* val = new double[1]; |
- *val = value; |
- if (*exp != *val) { |
- V8_Fatal(file, line, |
- "CHECK_EQ(%s, %s) failed\n# Expected: %f\n# Found: %f", |
- expected_source, value_source, *exp, *val); |
- } |
- delete[] exp; |
- delete[] val; |
-} |
- |
- |
inline void CheckNonEqualsHelper(const char* file, |
int line, |
const char* expected_source, |
@@ -189,27 +166,6 @@ inline void CheckNonEqualsHelper(const char* file, |
} |
-inline void CheckNonEqualsHelper(const char* file, |
- int line, |
- const char* expected_source, |
- double expected, |
- const char* value_source, |
- double value) { |
- // Force values to 64 bit memory to truncate 80 bit precision on IA32. |
- volatile double* exp = new double[1]; |
- *exp = expected; |
- volatile double* val = new double[1]; |
- *val = value; |
- if (*exp == *val) { |
- V8_Fatal(file, line, |
- "CHECK_NE(%s, %s) failed\n# Value: %f", |
- expected_source, value_source, *val); |
- } |
- delete[] exp; |
- delete[] val; |
-} |
- |
- |
#define CHECK_EQ(expected, value) CheckEqualsHelper(__FILE__, __LINE__, \ |
#expected, expected, #value, value) |