aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-24 14:16:41 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-24 14:16:41 +1100
commit7d964efbac97e6ff8f14417ad6cacef6722c3280 (patch)
tree8f202a891d5cef26a5740227a6c538b5cb0083c8 /src
parenta6d3d7d1fa7d03938a8917718c0a29036ae58a2d (diff)
downloadscintilla-mirror-7d964efbac97e6ff8f14417ad6cacef6722c3280.tar.gz
Backport: Removed unreachable branches in UTF8Classify.
Backport of changeset 6647:f81b6f34bf07.
Diffstat (limited to 'src')
-rw-r--r--src/UniConversion.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx
index f2bf8d30f..6789c1c64 100644
--- a/src/UniConversion.cxx
+++ b/src/UniConversion.cxx
@@ -275,14 +275,6 @@ int UTF8Classify(const unsigned char *us, int len) {
// Check if encoding a value beyond the last Unicode character 10FFFF
if (us[1] > 0x8f) {
return UTF8MaskInvalid | 1;
- } else if (us[1] == 0x8f) {
- if (us[2] > 0xbf) {
- return UTF8MaskInvalid | 1;
- } else if (us[2] == 0xbf) {
- if (us[3] > 0xbf) {
- return UTF8MaskInvalid | 1;
- }
- }
}
} else if ((*us == 0xf0) && ((us[1] & 0xf0) == 0x80)) {
// Overlong