diff options
author | Elliott Hughes <enh@google.com> | 2013-09-04 13:36:23 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-09-04 15:30:09 -0700 |
commit | fc3373240cfa749d9ad41dfba7c5683c8dfd4a1d (patch) | |
tree | d7d0fc9dc504938bba322576d94ff1f199888390 | |
parent | a025b288326b11f7081940743c8c554f0036a057 (diff) | |
download | icu4c-fc3373240cfa749d9ad41dfba7c5683c8dfd4a1d.tar.gz |
Remove the Android FieldPositionIterator::getData extension.
Change-Id: I1fcb7c472159dcb2a9a3cf3b2a23435f06325a12
-rw-r--r-- | i18n/fpositer.cpp | 14 | ||||
-rw-r--r-- | i18n/unicode/fpositer.h | 11 |
2 files changed, 0 insertions, 25 deletions
diff --git a/i18n/fpositer.cpp b/i18n/fpositer.cpp index a3c24b74..e2d3027e 100644 --- a/i18n/fpositer.cpp +++ b/i18n/fpositer.cpp @@ -56,20 +56,6 @@ UBool FieldPositionIterator::operator==(const FieldPositionIterator &rhs) const return rhs.data ? data->operator==(*rhs.data) : FALSE; } -// BEGIN android-added -int32_t FieldPositionIterator::getData(int32_t *dest, int32_t capacity) const { - int32_t len = data ? data->size() : 0; - if (len && dest) { - if (capacity < len) { - len = -len; // error, insufficient capacity - } else { - memcpy(dest, data->getBuffer(), len * sizeof(int32_t)); - } - } - return len; -} -// END android-added - void FieldPositionIterator::setData(UVector32 *adopt, UErrorCode& status) { // Verify that adopt has valid data, and update status if it doesn't. if (U_SUCCESS(status)) { diff --git a/i18n/unicode/fpositer.h b/i18n/unicode/fpositer.h index 704386d9..b842161a 100644 --- a/i18n/unicode/fpositer.h +++ b/i18n/unicode/fpositer.h @@ -96,17 +96,6 @@ public: */ UBool next(FieldPosition& fp); - // BEGIN android-added - /** - * Returns the data. If dest is null, returns the length of the data. - * Otherwise, if capacity is insufficient, returns the negative of the - * length of the data. Otherwise, copies data into dest and returns - * the length of the data. - * @internal - */ - int32_t getData(int32_t *dest, int32_t capacity) const; - // END android-added - private: friend class FieldPositionIteratorHandler; |