diff options
author | Mathias Agopian <mathias@google.com> | 2012-08-20 14:21:29 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-08-20 15:25:19 -0700 |
commit | f4ce7803fe71c9a9433ff1ba2e79db13a7e46290 (patch) | |
tree | efaba9b587f2373048d9e82652af7ff32aa4e4a7 /include/utils | |
parent | b3d68efa7e807070ed63cfad3f7576055c58eeba (diff) | |
download | frameworks_native-f4ce7803fe71c9a9433ff1ba2e79db13a7e46290.zip frameworks_native-f4ce7803fe71c9a9433ff1ba2e79db13a7e46290.tar.gz frameworks_native-f4ce7803fe71c9a9433ff1ba2e79db13a7e46290.tar.bz2 |
get rid of mirrorItemAt() which isn't used anywhere
Change-Id: Id6f2dbeed21cabc127d39538c0ff464077ada83f
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/SortedVector.h | 11 | ||||
-rw-r--r-- | include/utils/Vector.h | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/include/utils/SortedVector.h b/include/utils/SortedVector.h index fd1cb82..2d3e82a 100644 --- a/include/utils/SortedVector.h +++ b/include/utils/SortedVector.h @@ -98,8 +98,6 @@ public: inline const TYPE& itemAt(size_t index) const; //! stack-usage of the vector. returns the top of the stack (last element) const TYPE& top() const; - //! same as operator [], but allows to access the vector backward (from the end) with a negative index - const TYPE& mirrorItemAt(ssize_t index) const; /*! * modifying the array @@ -200,15 +198,6 @@ const TYPE& SortedVector<TYPE>::itemAt(size_t index) const { } template<class TYPE> inline -const TYPE& SortedVector<TYPE>::mirrorItemAt(ssize_t index) const { - const size_t i = index>0 ? index : -index; - LOG_FATAL_IF(index>=size(), - "%s: index=%u out of range (%u)", __PRETTY_FUNCTION__, - int(index), int(size())); - return *(array() + i); -} - -template<class TYPE> inline const TYPE& SortedVector<TYPE>::top() const { return *(array() + size() - 1); } diff --git a/include/utils/Vector.h b/include/utils/Vector.h index 506acae..7927328 100644 --- a/include/utils/Vector.h +++ b/include/utils/Vector.h @@ -99,8 +99,6 @@ public: inline const TYPE& itemAt(size_t index) const; //! stack-usage of the vector. returns the top of the stack (last element) const TYPE& top() const; - //! same as operator [], but allows to access the vector backward (from the end) with a negative index - const TYPE& mirrorItemAt(ssize_t index) const; /*! * modifying the array @@ -284,15 +282,6 @@ const TYPE& Vector<TYPE>::itemAt(size_t index) const { } template<class TYPE> inline -const TYPE& Vector<TYPE>::mirrorItemAt(ssize_t index) const { - const size_t i = index>0 ? index : -index; - LOG_FATAL_IF(index>=size(), - "%s: index=%u out of range (%u)", __PRETTY_FUNCTION__, - int(index), int(size())); - return *(array() + i); -} - -template<class TYPE> inline const TYPE& Vector<TYPE>::top() const { return *(array() + size() - 1); } |