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

Unified Diff: src/allocation.cc

Issue 2535383005: Deprecate the BASE_EMBEDDED macro (Closed)
Patch Set: Created 4 years 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 | « src/allocation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/allocation.cc
diff --git a/src/allocation.cc b/src/allocation.cc
index 195a5443c8ad51de9c30f436827af0e1c5fb3d81..fde01f6447b41fab881ce723971df2dc787d254a 100644
--- a/src/allocation.cc
+++ b/src/allocation.cc
@@ -32,23 +32,6 @@ void Malloced::Delete(void* p) {
}
-#ifdef DEBUG
-
-static void* invalid = static_cast<void*>(NULL);
-
-void* Embedded::operator new(size_t size) {
- UNREACHABLE();
- return invalid;
-}
-
-
-void Embedded::operator delete(void* p) {
- UNREACHABLE();
-}
-
-#endif
-
-
char* StrDup(const char* str) {
int length = StrLength(str);
char* result = NewArray<char>(length + 1);
« no previous file with comments | « src/allocation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698