aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPreConfig.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-08 17:16:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-08 23:53:57 +0000
commit692e29ebcd35c6cba647dc695b56b6168c535728 (patch)
treef125063965ca314d91b40ea2f9a326534910cd45 /include/core/SkPreConfig.h
parent8f5bbda0071e5663f454804e370e66f86b87078b (diff)
remove unused parts of SkTypes.h
Lots of completely unused bits and bobs removed. I've decided SK_SUPPORT_UNITTEST and its single use are not very compelling. tests/CPlusPlusEleven was the only user of Sk32ToBool(), and no longer generally needed. Change-Id: I3ee75560f1e1e1cf5ad89ee7df8d7694b5dffdb3 Reviewed-on: https://skia-review.googlesource.com/133622 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'include/core/SkPreConfig.h')
-rw-r--r--include/core/SkPreConfig.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index da91a17400..11d541d87c 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -225,48 +225,4 @@
#endif
#endif
-//////////////////////////////////////////////////////////////////////
-
-/**
- * Use SK_PURE_FUNC as an attribute to indicate that a function's
- * return value only depends on the value of its parameters. This
- * can help the compiler optimize out successive calls.
- *
- * Usage:
- * void function(int params) SK_PURE_FUNC;
- */
-#if defined(__GNUC__)
-# define SK_PURE_FUNC __attribute__((pure))
-#else
-# define SK_PURE_FUNC /* nothing */
-#endif
-
-//////////////////////////////////////////////////////////////////////
-
-/**
- * SK_HAS_ATTRIBUTE(<name>) should return true iff the compiler
- * supports __attribute__((<name>)). Mostly important because
- * Clang doesn't support all of GCC attributes.
- */
-#if defined(__has_attribute)
-# define SK_HAS_ATTRIBUTE(x) __has_attribute(x)
-#elif defined(__GNUC__)
-# define SK_HAS_ATTRIBUTE(x) 1
-#else
-# define SK_HAS_ATTRIBUTE(x) 0
-#endif
-
-/**
- * SK_ATTRIBUTE_OPTIMIZE_O1 can be used as a function attribute
- * to specify individual optimization level of -O1, if the compiler
- * supports it.
- *
- * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
- */
-#if SK_HAS_ATTRIBUTE(optimize)
-# define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
-#else
-# define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
-#endif
-
#endif