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

Unified Diff: sky/engine/platform/heap/Heap.h

Issue 673403002: Remove compiler feature detection for = delete (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't remove #define for FINAL Created 6 years, 2 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 | « sky/engine/core/rendering/RenderText.h ('k') | sky/engine/wtf/Compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/heap/Heap.h
diff --git a/sky/engine/platform/heap/Heap.h b/sky/engine/platform/heap/Heap.h
index b155c86fc664b331d044de0a89ea8bbd045d94f0..e1f071cefee6b21b53b75cf6981ffc6ad328ba33 100644
--- a/sky/engine/platform/heap/Heap.h
+++ b/sky/engine/platform/heap/Heap.h
@@ -1401,7 +1401,6 @@ T* adoptRefCountedGarbageCollected(T* ptr)
// need to have a trace method. That trace method will be called
// automatically by the Heap collections.
//
-#if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS)
#define DISALLOW_ALLOCATION() \
private: \
void* operator new(size_t) = delete; \
@@ -1419,28 +1418,6 @@ T* adoptRefCountedGarbageCollected(T* ptr)
private: \
Type() = delete;
-#else
-
-#define DISALLOW_ALLOCATION() \
- private: \
- void* operator new(size_t); \
- void* operator new(size_t, NotNullTag, void*); \
- void* operator new(size_t, void*)
-
-#define ALLOW_ONLY_INLINE_ALLOCATION() \
- public: \
- void* operator new(size_t, NotNullTag, void* location) { return location; } \
- void* operator new(size_t, void* location) { return location; } \
- private: \
- void* operator new(size_t);
-
-#define STATIC_ONLY(Type) \
- private: \
- Type();
-
-#endif
-
-
// These macros insert annotations that the Blink GC plugin for clang uses for
// verification. STACK_ALLOCATED is used to declare that objects of this type
// are always stack allocated. GC_PLUGIN_IGNORE is used to make the plugin
« no previous file with comments | « sky/engine/core/rendering/RenderText.h ('k') | sky/engine/wtf/Compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698