]> granicus.if.org Git - icu/commitdiff
ICU-13194 rbbi work, revert unneeded changes to UVector.
authorAndy Heninger <andy.heninger@gmail.com>
Sun, 1 Apr 2018 20:44:40 +0000 (20:44 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Sun, 1 Apr 2018 20:44:40 +0000 (20:44 +0000)
X-SVN-Rev: 41185

icu4c/source/common/uvector.cpp
icu4c/source/common/uvectr32.cpp
icu4c/source/common/uvectr32.h

index 4088855b7a3ab4bdcd49c5e736f674dad4f99963..cf19edf646fb0a2618cb5198c431dcb313d1e0aa 100644 (file)
@@ -518,7 +518,7 @@ sortiComparator(const void * /*context */, const void *left, const void *right)
 }
 
 /**
-  * Sort the vector, assuming it contains ints.
+  * Sort the vector, assuming it constains ints.
   *     (A more general sort would take a comparison function, but it's
   *     not clear whether UVector's UElementComparator or
   *     UComparator from uprv_sortAray would be more appropriate.)
index 484777885ee202e1fcb9ad38a46fef6e67633fcf..d1ae6599585086c5ac8d20cb0a6216d495756c4a 100644 (file)
@@ -13,7 +13,6 @@
 #include "uvectr32.h"
 #include "cmemory.h"
 #include "putilimp.h"
-#include "uarrsort.h"
 
 U_NAMESPACE_BEGIN
 
@@ -329,15 +328,8 @@ void UVector32::sortedInsert(int32_t tok, UErrorCode& ec) {
 }
 
 
-/**
-  * Sort the vector, assuming it contains ints.
-  */
-void UVector32::sorti(UErrorCode &ec) {
-    if (U_SUCCESS(ec)) {
-        uprv_sortArray(elements, count, sizeof(int32_t),
-                       uprv_int32Comparator, nullptr, false, &ec);
-    }
-}
+
+
 
 U_NAMESPACE_END
 
index 7efd767ae28ffc59de08e2422f0679ce8f2efd28..9112d9fe4aa2f94a45e7f0404c4e0b80bfb172e6 100644 (file)
@@ -160,11 +160,6 @@ public:
      */
     void sortedInsert(int32_t elem, UErrorCode& ec);
 
-    /**
-     * Sort the contents of the int32_t vector.
-     */
-    void sorti(UErrorCode &ec);
-
     /**
      * Returns a pointer to the internal array holding the vector.
      */