From 895f92218f705ff8ad9c47b8be0c093130d9fbbc Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 5 Jul 2017 09:53:32 -0700 Subject: ART: Fix up small header includes Test: m Change-Id: I6978d6eb4b95a6ee810e5a48ca6f5d6c590d4ce1 --- runtime/mirror/accessible_object.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'runtime/mirror/accessible_object.h') diff --git a/runtime/mirror/accessible_object.h b/runtime/mirror/accessible_object.h index a217193522..d489f14536 100644 --- a/runtime/mirror/accessible_object.h +++ b/runtime/mirror/accessible_object.h @@ -17,11 +17,8 @@ #ifndef ART_RUNTIME_MIRROR_ACCESSIBLE_OBJECT_H_ #define ART_RUNTIME_MIRROR_ACCESSIBLE_OBJECT_H_ -#include "class.h" -#include "gc_root.h" #include "object.h" #include "read_barrier_option.h" -#include "thread.h" namespace art { @@ -34,12 +31,6 @@ class MANAGED AccessibleObject : public Object { return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); } - template - void SetAccessible(bool value) REQUIRES_SHARED(Locks::mutator_lock_) { - UNUSED(padding_); - return SetFieldBoolean(FlagOffset(), value ? 1u : 0u); - } - bool IsAccessible() REQUIRES_SHARED(Locks::mutator_lock_) { return GetFieldBoolean(FlagOffset()); } @@ -47,7 +38,7 @@ class MANAGED AccessibleObject : public Object { private: uint8_t flag_; // Padding required for correct alignment of subclasses like Executable, Field, etc. - uint8_t padding_[1]; + uint8_t padding_[1] ATTRIBUTE_UNUSED; DISALLOW_IMPLICIT_CONSTRUCTORS(AccessibleObject); }; -- cgit v1.2.3-59-g8ed1b