summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-04-24 17:30:35 +0000
committerAndreas Gampe <agampe@google.com>2014-04-24 17:30:35 +0000
commitb5a14d2a6c18c1ea3c019c53b10af2e8f5dea234 (patch)
tree185fd3643ae9503c2506c24b26c9869dd34fbbf3 /runtime
parent973cc95da6fb617bab133bd7a693c1cb7eafd393 (diff)
downloadart-b5a14d2a6c18c1ea3c019c53b10af2e8f5dea234.zip
art-b5a14d2a6c18c1ea3c019c53b10af2e8f5dea234.tar.gz
art-b5a14d2a6c18c1ea3c019c53b10af2e8f5dea234.tar.bz2
Revert "ART: Extracts an utility function of the duplicated code"
This reverts commit 973cc95da6fb617bab133bd7a693c1cb7eafd393. Change-Id: I3883c74ba06116e89d89d9cf085f20cff5d15f77
Diffstat (limited to 'runtime')
-rw-r--r--runtime/mirror/array.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h
index a9dcfe6..772d303 100644
--- a/runtime/mirror/array.h
+++ b/runtime/mirror/array.h
@@ -68,12 +68,6 @@ class MANAGED Array : public Object {
}
}
- template<class MirrorType>
- static int32_t DataOffsetOfType(uint32_t index) {
- return DataOffset(sizeof(HeapReference<MirrorType>)).Int32Value() +
- (sizeof(HeapReference<MirrorType>) * index);
- }
-
void* GetRawData(size_t component_size, int32_t index)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() +