diff options
author | 2021-01-26 14:55:48 -0800 | |
---|---|---|
committer | 2021-02-01 13:34:00 -0800 | |
commit | 23e82b4798681581e3412b2b454ff86a76d078f8 (patch) | |
tree | 057f613c77333368db867e8e4ad5b5e051387ed4 /include/android/trace.h | |
parent | 87eb2c419ef230366ccbdbe980c4f49b7a70f372 (diff) |
Remove __ANDROID_API__ #if checks.
__INTRODUCED_IN() does the right thing automatically now.
Bug: http://b/178449269
Test: treehugger
Change-Id: I94d2ad6fafb6d907793a416db82a9e56f4f61d1c
Merged-In: I94d2ad6fafb6d907793a416db82a9e56f4f61d1c
Diffstat (limited to 'include/android/trace.h')
-rw-r--r-- | include/android/trace.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/android/trace.h b/include/android/trace.h index dbad6f6f21..dcefffb20d 100644 --- a/include/android/trace.h +++ b/include/android/trace.h @@ -40,8 +40,6 @@ extern "C" { #endif -#if __ANDROID_API__ >= 23 - /** * Returns true if tracing is enabled. Use this to avoid expensive computation only necessary * when tracing is enabled. @@ -72,10 +70,6 @@ void ATrace_beginSection(const char* sectionName) __INTRODUCED_IN(23); */ void ATrace_endSection() __INTRODUCED_IN(23); -#endif /* __ANDROID_API__ >= 23 */ - -#if __ANDROID_API__ >= 29 - /** * Writes a trace message to indicate that a given section of code has * begun. Must be followed by a call to {@link ATrace_endAsyncSection} with the same @@ -112,8 +106,6 @@ void ATrace_endAsyncSection(const char* sectionName, int32_t cookie) __INTRODUCE */ void ATrace_setCounter(const char* counterName, int64_t counterValue) __INTRODUCED_IN(29); -#endif /* __ANDROID_API__ >= 29 */ - #ifdef __cplusplus } #endif |