summaryrefslogtreecommitdiffstats
path: root/base/macros.h
diff options
context:
space:
mode:
authorViet-Trung Luu <viettrungluu@chromium.org>2014-10-20 20:54:34 -0700
committerViet-Trung Luu <viettrungluu@chromium.org>2014-10-21 03:56:06 +0000
commit59602fb67849bb51948a2f50b918af4d221ca9e1 (patch)
treec9245574e1899ad90cf8349e1fc43a680ec0c3ed /base/macros.h
parentcf48b06add705edd64c3ba607d025d703f731ca5 (diff)
downloadchromium_src-59602fb67849bb51948a2f50b918af4d221ca9e1.zip
chromium_src-59602fb67849bb51948a2f50b918af4d221ca9e1.tar.gz
chromium_src-59602fb67849bb51948a2f50b918af4d221ca9e1.tar.bz2
Delete ARRAYSIZE_UNSAFE (from base/macros.h).
R=thestig@chromium.org BUG=423134 Review URL: https://codereview.chromium.org/664743003 Cr-Commit-Position: refs/heads/master@{#300417}
Diffstat (limited to 'base/macros.h')
-rw-r--r--base/macros.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/base/macros.h b/base/macros.h
index f89d7d1..b6240da 100644
--- a/base/macros.h
+++ b/base/macros.h
@@ -67,15 +67,6 @@ char (&ArraySizeHelper(const T (&array)[N]))[N];
#define arraysize(array) (sizeof(ArraySizeHelper(array)))
-// DEPRECATED: Just use |arraysize()|, now that C++11 has removed the
-// limitations that forced the use of |ARRAYSIZE_UNSAFE()|.
-// TODO(viettrungluu): Convert all instances and delete. (The only uses are now
-// in Blink; the ifdef is to prevent it from reappearing in Chromium.)
-// crbug.com/423134
-#if defined(BLINK_PLATFORM) || defined(BLINK_PLATFORM_IMPLEMENTATION)
-#define ARRAYSIZE_UNSAFE(a) arraysize(a)
-#endif
-
// Use implicit_cast as a safe version of static_cast or const_cast
// for upcasting in the type hierarchy (i.e. casting a pointer to Foo