From 106b12427e642d067dd5b48664eb693653853583 Mon Sep 17 00:00:00 2001 From: mdempsky Date: Tue, 22 Sep 2015 06:10:35 -0700 Subject: Remove SkNEW and SkDELETE macros This CL removes the uses of SkNEW that have resprouted since commit 385fe4d, and removes the macros entirely now that Android and Chromium have been cleaned up to no longer depend on them. A bunch of files implicitly depend on #include from SkPostConfig.h still though, so keep that for now. To be fixed in a followup CL. [mtklein mucking around] Only public API removed. TBR=reed@google.com Review URL: https://codereview.chromium.org/1360653004 --- include/core/SkPostConfig.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'include/core/SkPostConfig.h') diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index f4ce102858..f228937305 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -100,16 +100,8 @@ /////////////////////////////////////////////////////////////////////////////// -#ifndef SkNEW -# include -# define SkNEW(type_name) (new type_name) -# define SkNEW_ARGS(type_name, args) (new type_name args) -# define SkNEW_ARRAY(type_name, count) (new type_name[(count)]) -# define SkNEW_PLACEMENT(buf, type_name) (new (buf) type_name) -# define SkNEW_PLACEMENT_ARGS(buf, type_name, args) (new (buf) type_name args) -# define SkDELETE(obj) (delete (obj)) -# define SkDELETE_ARRAY(array) (delete[] (array)) -#endif +// TODO(mdempsky): Move elsewhere as appropriate. +#include #ifndef SK_CRASH # ifdef SK_BUILD_FOR_WIN -- cgit v1.2.3