Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: source/i18n/regeximp.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/regeximp.h ('k') | source/i18n/region.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/regeximp.cpp
diff --git a/source/i18n/regeximp.cpp b/source/i18n/regeximp.cpp
index 395b3fc3cfb46cda94c8dc43093b7e4d5f00ef25..32df5fecfe66032743b948e59f99587c69a89206 100644
--- a/source/i18n/regeximp.cpp
+++ b/source/i18n/regeximp.cpp
@@ -12,8 +12,6 @@
#if !UCONFIG_NO_REGULAR_EXPRESSIONS
#include "regeximp.h"
-
-#include "uassert.h"
#include "unicode/utf16.h"
U_NAMESPACE_BEGIN
@@ -115,26 +113,6 @@ int64_t CaseFoldingUCharIterator::getIndex() {
return fIndex;
}
-// Assemble a pcode instruction from the opcode and operand values.
-// Out-of-range values should not occur - if they do it is from an internal
-// error in the regex compiler.
-
-// TODO: move into regexcmp, where it has access to fStatus.
-// NOP cleanly if U_FAILURE.
-// Set U_REGEX_INTERNAL_ERROR on bad operands.
-
-int32_t URX_BUILD(int32_t type, int32_t val) {
- if (type < 0 || type > 255) {
- U_ASSERT(FALSE);
- type = URX_RESERVED_OP;
- }
- if (val > 0x00ffffff) {
- U_ASSERT(FALSE);
- val = 0;
- }
- return (type << 24) | val;
-}
-
U_NAMESPACE_END
« no previous file with comments | « source/i18n/regeximp.h ('k') | source/i18n/region.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698